I'm trying to fire notifications with the parameter: type
like this:
var messages = [];
messages.push({type:'error',content:'Error notification'});
messages.push({type:'info',content:'Info notification'});
messages.push({type:'primary',content:'Primary notification'});
messages.push({type:'success',content:'Success notification'});
I'm trying to fire notifications with the parameter: type like this: var messages = []; messages.push({type:'error',content:'Error notification'}); messages.push({type:'info',content:'Info notification'}); messages.push({type:'primary',content:'Primary notification'}); messages.push({type:'success',content:'Success notification'});
angular.forEach(messages,function(message,key){ Notification({title:'test',type:message.type,message:message.content}); });