I m playing with angular 2 for a while and now I wanted to make some fun stuff using web apis like geolocation (using navigator object) and browser Notifications.
- https://developer.mozilla.org/en/docs/Web/API/notification
- https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation
I know how to inject window object inside of my application, but I can't find anything concerning Notification or navigator objects.
Angular2 - How to inject window into an angular2 service
Does anybody knows how can I inject them inside of a component ?
Thanks for your help