1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-23 06:31:51 +00:00
Files
Boostnote/src/states/states.js
2015-05-27 16:42:34 +09:00

36 lines
864 B
JavaScript

/* global angular */
angular.module('codexen.states')
.config(function($stateProvider, $urlRouterProvider){
$urlRouterProvider
.when('/auth', '/auth/register')
.when('/auth/', '/auth/register')
$stateProvider
/* Auth */
.state('auth', {
url: '/auth',
views:{
'main-view': {
templateUrl: 'states/auth/auth.tpl.html'
}
}
})
.state('auth.register', {
url: '/register',
templateUrl: 'states/auth/register.tpl.html',
controller: 'AuthRegisterController as vm'
})
.state('auth.signin', {
url: '/signin',
templateUrl: 'states/auth/signin.tpl.html',
controller: 'AuthSignInController as vm'
})
/* Home */
.state('home', {
url: '/',
template: 'this is a home'
})
})