Open BMLande opened 5 years ago
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
You can use this method to work the last call of your functions :
this.snotifyService.clear();
this.snotifyService.remove();
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