learun-uirouter.js 860 B

1234567891011121314151617181920212223242526
  1. angular.module('starter.uirouter', [])
  2. .config(function ($stateProvider, $urlRouterProvider) {
  3. // Ionic uses AngularUI Router which uses the concept of states
  4. // Learn more here: https://github.com/angular-ui/ui-router
  5. // Set up the various states which the app can be in.
  6. // Each state's controller can be found in controllers.js
  7. $stateProvider
  8. // setup an abstract state for the tabs directive
  9. //登录页
  10. .state('model', {
  11. url: '/model',
  12. templateUrl: '../../Content/webApp/templates/model.html',
  13. controller: 'modelCtrl'
  14. })
  15. .state('tabs', {
  16. url: '/tabs',
  17. templateUrl: '../../Content/webApp/templates/tabs.html',
  18. controller: 'tabsCtrl'
  19. });
  20. // if none of the above states are matched, use this as the fallback
  21. $urlRouterProvider.otherwise('/model');
  22. });