if the class cg-notify-message-template is not a direct child of cg-notify-message element, notify can't find it.
it can be a problem when you use a custom template.
Moreover, use 2 differents elements (message and messageTemplate) is not very obvious and once again custom template are not clean.
I send my code as a suggestion for clean support for html (it's a coffescript with class style code)
Hi,
if the class
cg-notify-message-template
is not a direct child ofcg-notify-message
element, notify can't find it. it can be a problem when you use a custom template. Moreover, use 2 differents elements (message and messageTemplate) is not very obvious and once again custom template are not clean.I send my code as a suggestion for clean support for html (it's a coffescript with class style code)
Filter for trust HTML in $message
Config notify with custom template (use of
ng-bind-html
withtrustHTML
filter)How to use ?
Result