On Friday, April 22, 2016 at 9:07:08 PM UTC+2, Dawg wrote: > > Hello everybody, > > <counter [counterValue]="myValue"></counter> > > Not certain, but I'm pretty sure it's working because of `[]` above. By putting the square brackets around the property, you explicitly declare it as a property (since there's no native html attribute counterValue). So your child component is irrelevant.
If you say this.something = "other" <div [class]="something"></div>, you tell angular to set div.class to this.something, so you have <div class="other"></div>. If you simply <div class="something"></div> in the same component, it's a regular "something". -- 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.
