From f6ab912e4367fb988e3843d83539a2cce6e4e2e4 Mon Sep 17 00:00:00 2001 From: leandrw Date: Fri, 15 Jul 2016 16:44:37 -0300 Subject: [PATCH] isolating scope as John Papas styleguide recomends --- tpls/constant.tpl.ejs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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