View source for more details.


notificationService.success('Successing text')


notificationService.info('Infomative text')


notificationService.notice('Notice text')


notificationService.error('Error text')


Use the generic PNotify object.

notificationService.notify({
  title: 'The notice title.', 
  title_escape: false,
  text: 'The notice text.',
  text_escape: false,
  styling: "bootstrap3",
  type: "notice", 
  icon: true
});
        


notificationService.notify({
  title: 'Confirmation Needed',
  text: 'Are you sure?',
  hide: false,
  confirm: {
    confirm: true
  },
  buttons: {
    closer: false,
    sticker: false
  },
  history: {
    history: false
  }
}).get().on('pnotify.confirm', function() {
  alert('Ok, cool.');
}).on('pnotify.cancel', function() {
  alert('Oh ok. Chicken, I see.');
});
        


notificationService.notifyWithDefaults({
  text: 'Keeps defaults but override delay',
  delay: 1000,
});
        


In config:

// Configure a stack named 'top_left' that append a call 'stack-topleft'
notificationServiceProvider.setStack('top_left', 'stack-topleft', {
    dir1: 'down',
    dir2: 'right',
    push: 'top'
});          
        
In controller:
notificationService.info('Hello World : Top left', 'top_left');
        


In config:

// Configure a stack named 'bottom_right' that append a call 'stack-bottomright'
notificationServiceProvider.setStack('bottom_right', 'stack-bottomright', {
    dir1: 'up',
    dir2: 'left',
    firstpos1: 25,
    firstpos2: 25
});
        
In controller:
notificationService.info('Hello World : Bottom right', 'bottom_right');