I have a DisplayComponent and I'd like to see it's data in the browser's/developer's console. How can I see it?
Example from Angular2 step by step guide:
function DisplayComponent() {
this.myName = "Alice";
}
How do I see this.myName
in the browser's/developer's console?
* Please note that this is a question about Angular 2 and not Angular 1. The suggested solution for AngularJS (Angular 1) doesn't work.