Wednesday, May 24, 2017

Put a ViewChild wireup for an Angular 2 component just inside of the class curly braces.

...and not in a method, constructor, or lifecycle hook. This should be just like making a component-wide public variable.

No comments:

Post a Comment