dustinspecker/generator-ng-poly

View on GitHub
lib/app/templates/_app.ts

Summary

Maintainability
A
0 mins
Test Coverage
///<reference path='../typings/tsd.d.ts' />
module <%= moduleName %> {
  'use strict';

  /* @ngdoc object
   * @name <%= moduleName %>
   * @description
   *
   */
  angular
    .module('<%= moduleName %>', [<% if (bower.indexOf('aria') > -1) {  %>
      'ngAria',<% } %><% if (framework === 'material') {  %>
      'ngMaterial',<% } %>
      <% if (ngRoute) { %>'ngRoute'<% } else { %>'ui.router'<% } %><% if (framework === 'angularstrap') { %>,
      'mgcrea.ngStrap'<% } %><% if (framework === 'uibootstrap') { %>,
      'ui.bootstrap'<% } %><% if (framework === 'foundation') { %>,
      'mm.foundation'<% } %>
    ]);
}