In keeping with my previous posts about my Webstorm templates, this is my template for creating a new Angular Service.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular.module('${moduleName}', []) | |
.service('${serviceName}', [${serviceName}]); | |
function ${serviceName}() { | |
var service = this; | |
} | |
})(); |
Previous Posts: