-
Notifications
You must be signed in to change notification settings - Fork 63
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
Default configuration #16
Comments
Thanks for ng-Notify. Works like a charm. I am having the same question as sylouuu |
Hey guys, if you'd like to setup some default config options I'd recommend tossing it in the A working example of setting it up this way:
Here's an example you can play around with on codepen. If you have a global controller, you could toss it in there as well. Hope this helps ya out! |
@matowens You have right, my bad, it works in But it's the first time I see a plugin configuration inside |
The configuration is in .run() because the configuration methods are in the On Fri, May 22, 2015 at 4:24 AM Syl [email protected] wrote:
|
very Nice |
Hey,
Thanks for ng-notify.
I'm wondering where do you put
ngNotify.config()
? In a controller?For some other ng plugins that I've to use, all default options are inside:
But I can't inject ngNotify there, same in
app.run()
.So how do you do?
Bests
The text was updated successfully, but these errors were encountered: