We are trying to build a metadata-driven UI for our application and we are considering using Angular2 to build it. One question we have is that we'd like to build a somewhat generic parameter-driven component whose view template is dynamically rendered by the server.
I did a proof-of-concept in Angular1 by doing something like this: <ng-include src="ctrl.template"></ng-include> where ctrl.template is a controller var specifying a URL that is dynamically set in the controller. This seemed to work for me. But, I couldn't get <ng-include> to work at all for me in Angular2. Will this technique work in Angular2? Is there any way to dynamically inject view code into an Angular2 component? Thanks, Pete -- 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.
