Plato on Github
Report Home
services/growl.js
Maintainability
69.94
Lines of code
25
Difficulty
8.57
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
'use strict'; /** * @ngdoc service * @name SnsApp.flash * @description * # flash * Factory in the SnsApp. */ angular.module('SnsApp') .factory('flash', ['growl', function(growl) { return { set: function(message, type, isStateChange) { //jshint unused:false if (type === 'success') { growl.success(message); } else if (type === 'error') { growl.error(message); } else if (type === 'info') { growl.info(message); } else if (type === 'Warning') { growl.warning(message); } } }; }]);