/AngularScotch

AngularScotch

Primary LanguageHTML

AngularScotch

  1. Instruction: https://scotch.io/tutorials/angular-routing-using-ui-router

  2. bower install angular-ui-router

  3. script src="bower_components/angular-ui-router/release/angular-ui-router.js"

  4. div ui-view

  5. var app = angular.module('myApp', ['ngCordova', 'ui.router']);

  6. app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider .state('tab', { url: '/tab', abstract: true, templateUrl: 'templates/tabs.html' }) $urlRouterProvider.otherwise('/tab/find'); }]);