angular-nevera-generator
Version:
Yeoman AngularJS scaffold a webapp with Angular 1 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma
27 lines (22 loc) • 612 B
text/typescript
import * as angular from 'angular';
import {hello} from './app/hello';
<% if (router === 'uirouter') { -%>
import 'angular-ui-router';
import routesConfig from './routes';
<% } -%>
<% if (modules === 'webpack') { -%>
import './index.<%- css %>';
<% } -%>
export const app: string = 'app';
angular
<% if (router === 'uirouter') { -%>
.module(app, ['ui.router'])
<% if (modules === 'systemjs') { -%>
.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', routesConfig])
<% } else { -%>
.config(routesConfig)
<% } -%>
<% } else { -%>
.module(app, [])
<% } -%>
.component('app', hello);