JanStevens / angular-growl-2

growl-like notifications for angularJS projects
MIT License
285 stars 97 forks source link

Display the message after reload/redirect #40

Closed jgoux closed 10 years ago

jgoux commented 10 years ago

Hello, would it be possible to queue one or multuple messages and then release them in another view ? Take the typical login screen example : The user enter the credentials. It fails, direct growl message displayed : "Password doesn't match". On success, within the current controller, we do something like :

growl.queue.success('Welcome !');
$state.go('home');
jgoux commented 10 years ago

I've found an alternative. I just reset my form using $setPristine()