32 lines
No EOL
730 B
JavaScript
32 lines
No EOL
730 B
JavaScript
angular.module('app.routes', [])
|
|
|
|
.config(function($stateProvider, $urlRouterProvider) {
|
|
|
|
// Ionic uses AngularUI Router which uses the concept of states
|
|
// Learn more here: https://github.com/angular-ui/ui-router
|
|
// Set up the various states which the app can be in.
|
|
// Each state's controller can be found in controllers.js
|
|
$stateProvider
|
|
|
|
|
|
|
|
.state('searchableVideoLibrary', {
|
|
url: '/page1',
|
|
templateUrl: 'templates/searchableVideoLibrary.html',
|
|
controller: 'searchableVideoLibraryCtrl'
|
|
})
|
|
|
|
.state('tutorial', {
|
|
url: '/page2',
|
|
params: {
|
|
videokey: ""
|
|
},
|
|
templateUrl: 'templates/tutorial.html',
|
|
controller: 'tutorialCtrl'
|
|
})
|
|
|
|
$urlRouterProvider.otherwise('/page1')
|
|
|
|
|
|
|
|
}); |