b9de9d7071
Change-Id: Ib6889e9097604dd05412dab07b3d12bd97560d96
22 lines
522 B
JavaScript
22 lines
522 B
JavaScript
'use strict';
|
|
|
|
angular.module('bansho.notifications', [])
|
|
.service('notifications', [
|
|
function () {
|
|
var push = function (type, title, message) {
|
|
$(function(){
|
|
new PNotify({
|
|
type: type,
|
|
title: title,
|
|
text: message,
|
|
styling: {},
|
|
});
|
|
});
|
|
};
|
|
|
|
return {
|
|
"push": push
|
|
};
|
|
|
|
}]);
|