Hi everybody!

I wrote a directive for Angular 1 in which I was taking all the attributes 
applied to my component, used in the form of:
<my-component></my-component>

Inside the template of my component there is an input element which was the 
receiver of every attribute applied to the component, i.e. if I passed a 
ng-disabled to my component, it was removed from it in the prelinking 
function and then applied to the input element. After that I was 
recompiling the content of the component, so every directive was applied 
correctly to the input.

Since in Angular2 it's mandatory predefine the directives you're gonna use 
in your component, is there anyway to do this dynamically? Maybe something 
similar to the providers inheriting from the parent components?

Thanks!

-- 
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.

Reply via email to