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