In keeping with my previous posts about my Webstorm templates, this is my template for creating a new Angular Service.
(function() { | |
'use strict'; | |
angular.module('${moduleName}', []) | |
.service('${serviceName}', [${serviceName}]); | |
function ${serviceName}() { | |
var service = this; | |
} | |
})(); |
Previous Posts: