diff --git a/tpls/constant.tpl.ejs b/tpls/constant.tpl.ejs index 72485c3..5d22fbf 100644 --- a/tpls/constant.tpl.ejs +++ b/tpls/constant.tpl.ejs @@ -1,5 +1,8 @@ +;(function(){ +'use strict' + angular.module("<%- moduleName %>"<% if (deps) { %>, <%= JSON.stringify(deps) %><% } %>) <% constants.forEach(function(constant) { %> .constant("<%- constant.name %>", <%= constant.value %>) <% }) %> -; \ No newline at end of file +})(); \ No newline at end of file