[deprecated] Use macros for the Alerts snippet in templates
so as to reuse code.
Jade/Pug as mixins, but only for current file, not import-able to another.
In nearly all templates, we use interactive alerts:
div
uib-alert.ng-cloak(
ng-repeat="alert in alerts"
type="{{ 'alert.level' | ng }}"
close="closeAlert($item)"
ng-click="utils.closeAlert($item)"
)
{{ 'alert.message' | ng }}
Edited by vindarel