matowens / ng-notify

A simple, lightweight module for displaying notifications in your AngularJS app.

Home Page:http://matowens.github.io/ng-notify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Having the notification appear for wait

zeeshanjan82 opened this issue · comments

How can I have the notification appear as long as I am waiting for the current operation to return status like an ajax call. All the examples have a predefined time which we can set. Is there any setting where I want the notification to appear as long as I want and when I have result from the ajax call then I can hide the notification.

commented

@zeeshanjan82 you could give the sticky notifications a try. - https://github.com/matowens/ng-notify#sticky-notifications

Set sticky to true, and then when your promise is resolved, you could call the dismiss() method to close the notification when you're ready to.

@matowens in iOS, I'm using this statregy however the notifications isn't fading out. I opened an issue #48 for this.