bansho/app/components/notifications/notifications.js
Vincent Fournier 63f3ad58d6 Improve jshint task and fix errors
Change-Id: I1b9c7d4a7040e3fee66388b9744b553a6fb1da6e
2015-05-20 15:46:08 -04:00

24 lines
543 B
JavaScript

/*global PNotify */
'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
};
}]);