Can't I use html element in notify?

can't I use html element in notify?'<a href="", target='_blank'>');

Hi whoami,

You can use notify.directive, which takes an object that has a template (AngularJS HTML), and a controller for event handling.


const directive = {
  template: "<button ng-click='hello.goElastic()'></button>",
  controllerAs: 'hello',
  controller($window) {
    this.goElastic = () => $'');
notify.directive(directive, {
  type: 'banner',
  lifetime: Infinity,
  actions: [

You can also use simple Markdown syntax in the content of any notification type, which would be a lot easier :smiley:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.