-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification working when injected through service #70
Comments
You can use this method to work the last call of your functions :
use code before : this.snotifyService.error(.... and in other type in all of your functions |
Thanks for quick reply , i will apply this and test . in between i have created simple Typescript class rather than service and create class object in other components it works for me . |
Helloa , I have created one service where i add all mostly used notifications with its configuration , but it's only work with login component where i injected this notification service(Apps first component) , when i am using same with registration component its not showing any notification , but when i agin come back to login (and suppose i enter wrong password) so both notifications are showing(login error , registration error).
NOTIFICATION SERVICE
//following service is created for use ng-snotify
alos added in login.component.html
where i did same process for registration component , but its not working , But i when came back to login component its showing both notifications. if u get scenerion please reply back . also suugest how to create reusable notification. thanks
The text was updated successfully, but these errors were encountered: