SHARE
TWEET

Untitled

a guest Jan 8th, 2016 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular.module('kepler', [
  2.     'ui.bootstrap',
  3.     'ui.router'
  4.     ])
  5.     .config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
  6.         $urlRouterProvider.otherwise('/');
  7.  
  8.         $stateProvider
  9.             .state('kepler',{
  10.                 controller: 'KeplerController',
  11.                 template: '<div ui-view></div>'
  12.             })
  13.  
  14.             //GAME
  15.             .state('game',{
  16.                 url: '/game',
  17.                 templateUrl: 'templates/game.tpl.html',
  18.                 controller: 'GameController'
  19.             })
  20.             .state('game.planet', {
  21.                 url:'/planet',
  22.                 controller: 'PlanetController',
  23.                 views:{
  24.                     'root':{
  25.                         templateUrl: 'templates/game.planet.html'
  26.                     }
  27.                 }
  28.             });
  29.         }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top