Hello all,
We have an AngularJS application that injects components (directives) from
pure JS and compiles them on the fly.
We want to gradually upgrade our application to Angular 4 and started
creating and a hybrid application.
We need to use a similar mechanism to compile the new Angular 4 components
that are injected from pure JS.
This is our currnet AngularJs service that handles the event of adding a
new directive:
private directiveAdded(e: CustomEvent) {
service.getScope(id).then((scope) => {
this.$compile(e.detail.element)(scope);
});
}
What is the equivalent way to do this in Angular 4?
Thanks for your help!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" 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.