matowens / ng-notify

A simple, lightweight module for displaying notifications in your AngularJS app.
http://matowens.github.io/ng-notify
MIT License
668 stars 66 forks source link

How to call a scope function ? #33

Open piyushkhanna opened 8 years ago

piyushkhanna commented 8 years ago

I am trying to add a button in ng notify body and trying to call a scope function. Is it doable?

matowens commented 8 years ago

not currently, the message can only be text with how it's setup. custom templates would be an interesting feature if anyone would want to take a stab at a PR.

piyushkhanna commented 8 years ago

Thanks! Will keep an eye!

taobataoma commented 8 years ago

hi, I think the custom templates is great function, how do u to add it? I need it very much

matowens commented 8 years ago

it still needs to be built out but I image you would be able to pass in a path to a partial with or without a scope that the module could compile and use to display notifications. let me know if you end up giving it a try, i'd be interested in what someone could whip up.