web-dave / Angular-Essentials-Training

9 stars 0 forks source link

Debug #4

Open web-dave opened 6 years ago

web-dave commented 6 years ago
// grab the component instance of the DOM element stored in $0
let myComp = ng.getComponent($0);
// or
let myComp = ng.getOwningComponent($0)

// interact with the component's API
myComp.toggle();

// trigger change detection on the component
ng.applyChanges(myComp);

https://angular.io/guide/devtools

web-dave commented 6 years ago

Generate a my-nav Component