ng2-notifications
ng2-notifications copied to clipboard
Does it work in angular 4?
As directive is no more a part of @Component declaration the directive way is not working.
I'm using angular 4 too. Did you resolve this problem?
@dalilagauge No. I am building my own!
@echorohit Could you share your solution, please?
currently developing the angular 4 solution. hoping to pull request and merge here soon. @dalilagauge
just pushed the angular 4 solution to npm : https://www.npmjs.com/package/angular-notice. Hoping once Alex responds we can merge the projects. The repo is also on my github.
Thank you @LenonLopez! Is your project merged? How can I use?
@dalilagauge Unfortunately it is not merged but you can go to the npm page for the package i created and follow directions there.
I also have a new repo: https://github.com/LenonLopez/angular-notice
If you can any questions please go there and open an issue. I will be more than happy to develop more features you need.
@LenonLopez Hello. I was trying to apply your solution but an error appeard:
ERROR Error: Uncaught (in promise): Error: No provider for NativeNotificationService! Error: No provider for NativeNotificationService!
I followed the instructions. My angular version is 4.4.4.
Please help.
Ok I got the solution, the line:
import { NativeNotificationService } from 'angular-notice/lib/native-notification.service';
should also be included in app.module.ts and NariveNotificationService should be placed in @NgModule's provider array.
Now it works. Awesome solution for @LenonLopez for Angular 4 ! Many thanks !
@LenonLopez Mind submitting a PR to this project?