-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
35 lines (33 loc) · 1.16 KB
/
app.js
File metadata and controls
35 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'use strict';
var loginapp = angular.module('loginapp', ['ui.router','ui.bootstrap']);
loginapp.config(['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider, $mdThemingProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'views/homeView.html',
controller: 'homeController'
})
.state('login', {
url: '/',
templateUrl: 'views/loginView.html',
controller: 'loginController'
})
.state('register', {
url: '/user',
templateUrl: 'views/registerView.html',
controller: 'registerController'
})
.state('forgot', {
url: '/forgot',
templateUrl: 'views/forgotView.html',
controller: 'forgotController'
})
.state('loginsucess', {
url: '/login_sucess',
templateUrl: 'views/loginSucess.html',
controller: 'loginSucess'
})
}
]);