It crashes when is inside angular routing
Closed this issue · 3 comments
I know that the notificacions have to be on the top of the routing in order to be global, but this is not my case. I have the notifications in a component that is in the middle of the routing tree. It goes perfect when I am in this component, but when I go to a same level component or parent, it crashes.
I've made a plunkr showing this error, I've take the angular2 example last routing and I have put the notifications (you could find it in the CrisisCenterComponent). You will see that the application works perfectly until we change the component.
Plunkr: http://plnkr.co/edit/p6oiZ87ySc7rVn1GqUu7?p=preview
Thank you in advice! nice work.
@llorenspujol, I have the same situation as you (a component in the middle of the routing tree, I use modules however) and I get the same issue :
TypeError: Notification.close is not a function
and my app crashes.
Did you solve your problem since your initial post ?
Thank you.
Same problem here (Google Chrome), any solution for that??
TypeError: Notification.close is not a function
Notification.close();
The current implementation look wrong, probably this should be referred to one notification instance, see example in https://developer.mozilla.org/en-US/docs/Web/API/Notification/close