Awesome, good design choice! Thanks. On Monday, January 18, 2016 at 9:20:39 PM UTC+2, Eric Martinez wrote: > > Yes, this is by design, see https://github.com/angular/angular/pull/3419 > > So since you have a directive in the element and binding to a property > using brackets, that property it doesn't belong anymore to the element but > to the directive. As specified in the message in the issue referenced above > you have to use host property to reset the attribute you're trying to set > in the element > > > @Directive({ > selector: '[pSpinner]', > host : { > '[attr.disabled]' : 'disabled' > } > }) > export class SpinnerDirective implements OnInit, OnDestroy, OnChanges { > @Input('disabled') disabled; > } > > See if it works with "[attr.disabled]", or just "[disabled]", I don't > remember/know if it is an attribute or a property. > >
-- 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.
