Closed nstohler closed 8 years ago
+1 for this
However, I actually just did a test by using angular-bind-html-compile and customized the default template with this directive and it worked.
+1 on this. Would definitely be very helpful.
This is already possible without any modification, but it requires a new scope to be added to the notification. I made a plunk to demonstrate how this can be accomplished; the scope can either be created as in the example, or using $rootScope if necessary.
Added by 7e2fc4ffda24f5150700bbd7a88fa1846631d9f2
Our use case calls for a notification item that can be clicked on and then would call a function in our code (to show more details about the item using ngDialog). I tried adding ng-click handlers in the template, but the code never got called. It would be great if we could pass in some arguments in some way of course!