Debugging Angular 4 from Chrome console
Posted by valqk on
Right click and inspect the element(component) you want to debug.
Then you can go to console and access the component variable by
When you want to detect UI changes
Sourcce: https://dzone.com/articles/debugging-angular-2-applications-from-the-console
Then you can go to console and access the component variable by
ng.probe($0).componentInstance
When you want to detect UI changes
ng.probe($0).injector._depProvider.componentView.changeDetector.detectChanges()
Sourcce: https://dzone.com/articles/debugging-angular-2-applications-from-the-console
Trackbacks
Trackback specific URI for this entryThis link is not meant to be clicked. It contains the trackback URI for this entry. You can use this URI to send ping- & trackbacks from your own blog to this entry. To copy the link, right click and select "Copy Shortcut" in Internet Explorer or "Copy Link Location" in Mozilla.
No Trackbacks
Comments
Display comments as Linear | ThreadedNo comments