mcfly-io / generator-mcfly

A Yeoman generator for scaffolding an application using angular, browserify, ionic and famous

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App.namespace in module template should come before the inject:folders tags

jskrzypek opened this issue · comments

https://github.com/mcfly-io/generator-mcfly/blob/master/templates/module/index.js#L22
this:

    var app = angular.module(fullname, ['ui.router', <%- ngModules %>]);
    // inject:folders start
    // inject:folders end
    app.namespace = app.namespace || {};

should be this:

    var app = angular.module(fullname, ['ui.router', <%- ngModules %>]);
    app.namespace = app.namespace || {};
    // inject:folders start
    // inject:folders end