bansho/app/components/notifications/notifications.js
aviau b9de9d7071 Actionbar: Added notifications
Change-Id: Ib6889e9097604dd05412dab07b3d12bd97560d96
2015-05-20 09:23:09 -04:00

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
};
}]);