generator-angular-blueprint
Version:
Yeoman angular generator that allows you to override global templates with your own!
22 lines (19 loc) • 436 B
JavaScript
;
/**
* @module <%= appName %>
*
* @description
* Main module of the application.
*/
angular
.module('<%= appName %>', [
'ngAnimate',
'ngCookies',
'ui.router',
'ngSanitize',
'ngTouch'
])
.config(function ($urlRouterProvider) {
$urlRouterProvider.when('', '/'); // redirect to root if the state is ''
$urlRouterProvider.otherwise('/'); // redirect to root if state is not found
});