content/hifi-content/caitlyn/scratch/ionicTest/js/routes.js
2022-02-13 22:19:19 +01:00

23 lines
No EOL
552 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('particleEditor', {
url: '/page1',
templateUrl: 'templates/particleEditor.html',
controller: 'particleEditorCtrl'
})
$urlRouterProvider.otherwise('/page1')
});