Issue
This is my component's code, non of the versions do anything. I just get blank console in browser.
export class AssetsComponent {
s = 'Hello2';
constructor() {
this.s = 'ds';
console.log(this.s); <--- nothing
console.log('test'); <--- nothing
console.log(s); <--- breaks the compiler
}
}
Solution
If anyone else encounters this problem here's what my error was: in chrome developer tools, under the console there is a setting to hide all output. For whatever reason, it was turned on. I set it back to "Default" and it works now.
Answered By - yodalr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.