ng2-notifications icon indicating copy to clipboard operation
ng2-notifications copied to clipboard

Does it work in angular 4?

Open echorohit opened this issue 7 years ago • 9 comments

As directive is no more a part of @Component declaration the directive way is not working.

echorohit avatar Aug 03 '17 17:08 echorohit

I'm using angular 4 too. Did you resolve this problem?

dalilagauge avatar Sep 15 '17 23:09 dalilagauge

@dalilagauge No. I am building my own!

echorohit avatar Sep 20 '17 14:09 echorohit

@echorohit Could you share your solution, please?

dalilagauge avatar Sep 20 '17 18:09 dalilagauge

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.

LenonLopez avatar Sep 23 '17 08:09 LenonLopez

Thank you @LenonLopez! Is your project merged? How can I use?

dalilagauge avatar Sep 29 '17 00:09 dalilagauge

@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 avatar Oct 03 '17 19:10 LenonLopez

@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.

WitoldSlawko avatar Oct 24 '17 13:10 WitoldSlawko

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 !

WitoldSlawko avatar Oct 24 '17 13:10 WitoldSlawko

@LenonLopez Mind submitting a PR to this project?

alexcastillo avatar Nov 22 '17 17:11 alexcastillo