I have the simplest possible angular element within an angular project. I throw error in component belonging to angular element as follows:
dashboard-tile.component.ts user as <dashboard-tile a="100" b="50" c="25"></dashboard-tile> in index.html
ngOnInit() {
throw "this is an error";
}
But I see no error in chrome console. Can someone pls advice?
Link to video. Link to github repo containg the code.
Edit:
Testing:
- I have tested it in chrome and firefox. Its reproducible in both.
- If I treat above component like normal component (having
<app-dashboard-tile><app-dashboard-tile/>inapp.component.ts), exceptions are shown in console
A note:
-
This question is about angular elements and not about regular angular project. Its easy to overlook this.
-
It would be great if you could clone the project and run it locally. It wont take more that 2mins.
from Why angular elements are swallowing error?
No comments:
Post a Comment