Solved. Thanks for the help. https://plnkr.co/edit/tnBc4Y8KtRPNoCEQ946t?p=preview
On Thursday, May 18, 2017 at 12:49:08 PM UTC-7, Jonathan Price wrote: > > Sorry, I updated the plunker to better reflect my problem! > > https://plnkr.co/edit/qmYfm2pIHtr9kWboXxjT?p=preview > > It stems from an async subscription to the form data source and the need > to update the form validity accordingly. Thanks! > > > On Wednesday, May 17, 2017 at 7:53:49 PM UTC-7, Sander Elias wrote: >> >> Hi Jonathan, >> >> You can't use the afterview* lifecycle hooks to make any changes that >> affect your view's data. Do that in the ngOnInit, or any of the other >> places. >> I assume you have a 3rth party that changes something in your data when >> it initialises? Try listening to the event it triggers, and hook into that. >> On an input you would do something like: >> >> <input ... (changes)="fireValidEvent()"> >> >> I'm pretty sure, your problem can be solved that way. >> >> 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.
