I am migrating to Angular 4 from legacy javascript, one component at a time.
One key to success is being able to pass data to angular4 components from legacy javascript. I have successfully tried calling components directly by 1. exposing this from a component, then calling this->method() directly from outside angular. 2. exposing an observable from a component, then updating it from outside angular. Both of these requires this.changeDetectorRef.detectChanges() which makes me wary. Are either of these bad - in an angular zen kind of way? Especially exposing this feels bad. *Are there a better way?* Plunker with examples can be found at https://plnkr.co/edit/Ny9kmQrNZTrlmFJZZffo -- 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.
