Hi Sander, Thanks for the SO pointer; that's very useful!
For my immediate need, I felt like I was fighting Angular to do what I wanted rather than being helped by Angular. So I punted and just went back to "non-live" elements which I operate on with external code messing with the DOM and the innerHTML. Not very object-oriented of me, I know. The ability to programmatically cause the insertion of dynamic "live" elements is going to be important, in my opinion. I'm very glad to hear that it's going to be possible with the integrated HTML parser. Chris On Wednesday, February 24, 2016 at 7:30:31 PM UTC-8, Sander Elias wrote: > > Hi Chris, > > Yes, now you mention it it's perfectly obvious :) > > Ok, there is no direct way(yet!). You have to use the > DynamicComponentLoader > <https://angular.io/docs/ts/latest/api/core/DynamicComponentLoader-class.html> > for > now. This SO question > <http://stackoverflow.com/questions/34784778/equivalent-of-compile-in-angular-2> > > will show you how you can do it now. If you are patient, there will be an > easier way, once the new HTML parser is fully integrated. > > 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
