initial
This commit is contained in:
21
js/routes.js
Executable file
21
js/routes.js
Executable file
@@ -0,0 +1,21 @@
|
||||
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('page', {
|
||||
url: '/page1',
|
||||
templateUrl: 'templates/page.html',
|
||||
controller: 'pageCtrl'
|
||||
})
|
||||
|
||||
$urlRouterProvider.otherwise('/page1')
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user