Hi Sander,
I'm sorry but I can't figure out how it can helps me, maybe you can suggest
me.
What I need to do is create an app that read a configuration that specifies
which components should be loaded and where this components are located,
i.e.:
directive: comp-a
location: ../src/component-a.ts
directive: comp-b
location: ./src/component-b.ts
the app component should not make any reference to these components in its
directives, so if tomorrow another guy want to add a new component-c he
just provides its component code .ts and updates the configuration file.
No changes in my app component is needed.
the app code should look like:
<div id="divSnapin" *ng-for="#comp of components">
<compose type="{{comp.directive}}"
location="{{comp.location}}"> </compose>
</div>
Think about an application who contains many widgets and new widgets can be
added without any application update.
BR,
Massimiliano
On Wednesday, November 11, 2015 at 2:31:31 PM UTC+1, Sander Elias wrote:
>
> I'm sorry. I'm sure it was shown on AngularConnect. Hold on , I'll browse
> the documentation.
>
> Ok, I think you need this feature
> <https://angular.io/docs/ts/latest/api/core/HostMetadata-class.html>.
>
> Regards
> Sander
>
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.