-
Instruction: https://scotch.io/tutorials/angular-routing-using-ui-router
-
bower install angular-ui-router
-
script src="bower_components/angular-ui-router/release/angular-ui-router.js"
-
div ui-view
-
var app = angular.module('myApp', ['ngCordova', 'ui.router']);
-
app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider .state('tab', { url: '/tab', abstract: true, templateUrl: 'templates/tabs.html' }) $urlRouterProvider.otherwise('/tab/find'); }]);