Joe,

You are aware that if you check a @input property in ngOnit only gets 
evaluated once? If you want to react to changes on a property, you can use 
a @input setter/getter to take care of changes. 
This needs different tests anyway.
And yes, I'm aware that this is a quick one-off to show the problem, but 
still, it probably reflects the originating code.  Making the change I 
proposed will make testing and maintenance simpler.

Regards
Sander

-- 
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.
  • [AngularJS] Even... 'Joe Allan Muharsky' via Angular and AngularJS discussion
    • [AngularJS]... Sander Elias
      • Re: [An... 'Joe Allan Muharsky' via Angular and AngularJS discussion
        • Re:... 'Joe Allan Muharsky' via Angular and AngularJS discussion
        • Re:... Sander Elias
          • ... 'Joe Allan Muharsky' via Angular and AngularJS discussion

Reply via email to