43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
var app = angular.module('bookmarkApp', ['ui.router']);
|
|
|
|
app.config(function ($stateProvider, $urlRouterProvider) {
|
|
|
|
$urlRouterProvider.otherwise("/");
|
|
|
|
$stateProvider
|
|
.state('bookmarks', {
|
|
url:'/bookmarks',
|
|
templateUrl: '/views/bookmarks.html',
|
|
// controllerAs: 'bookmarksCtrl',
|
|
controller: 'bookmarksCtr'
|
|
})
|
|
.state('addBookmark', {
|
|
url:'/addBookmark',
|
|
templateUrl: '/views/addBookmark.html',
|
|
})
|
|
.state('tags', {
|
|
url:'/tags',
|
|
templateUrl: '/views/tags.html',
|
|
})
|
|
.state('advice', {
|
|
url:'/advice',
|
|
templateUrl: '/views/advice.html',
|
|
})
|
|
.state('settings', {
|
|
url:'/settings',
|
|
templateUrl: '/views/settings.html',
|
|
})
|
|
.state('register', {
|
|
url:'/register',
|
|
templateUrl: '/views/register.html'
|
|
})
|
|
.state('intro', {
|
|
url:'/intro',
|
|
templateUrl: '/views/intro.html'
|
|
})
|
|
.state('/', {
|
|
url:'/',
|
|
templateUrl: '/views/intro.html'
|
|
});
|
|
});
|