web-dave / angular-essentials-workshop

2 stars 0 forks source link

Debug #3

Open web-dave opened 2 years ago

web-dave commented 2 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 2 years ago

Next