lib/factory/templates/_factory.js
(function () {
'use strict';
/**
* @ngdoc service
* @name <% if (parentModuleName) { %><%= parentModuleName %>.<% } %><%= moduleName %>.factory:<%= upperCamel %>
*
* @description
*
*/
angular
.module('<% if (parentModuleName) { %><%= parentModuleName %>.<% } %><%= moduleName %>')
.factory('<%= upperCamel %>', <%= upperCamel %>);
function <%= upperCamel %>() {
var <%= upperCamel %>Base = {};
<%= upperCamel %>Base.someValue = '<%= upperCamel %>';
<%= upperCamel %>Base.someMethod = function () {
return '<%= upperCamel %>';
};
return <%= upperCamel %>Base;
}
}());