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
20 lines (17 loc) • 415 B
JavaScript
<% if (modules === 'inject') { -%>
angular
.module('app')
.config(routesConfig);
<% } else { -%>
module.exports = routesConfig;
<% } -%>
/** @ngInject */
function routesConfig($stateProvider, $urlRouterProvider, $locationProvider) {
$locationProvider.html5Mode(true).hashPrefix('!');
$urlRouterProvider.otherwise('/');
$stateProvider
.state('app', {
url: '/',
component: 'app'
});
}