SHARE
TWEET

Untitled

a guest Dec 16th, 2014 5 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   .config(['$stateProvider', '$urlRouterProvider',
  2.     function ($stateProvider, $urlRouterProvider) {
  3.     $urlRouterProvider.otherwise('/');
  4.  
  5.     $stateProvider
  6.       .state('', {
  7.         url: '/',
  8.         templateUrl: 'views/main.html',
  9.         controller: 'MainCtrl'
  10.       })
  11.       .state('/about', {
  12.         templateUrl: 'views/about.html',
  13.         controller: 'AboutCtrl'
  14.       })
  15.       .state('/channels', {
  16.         templateUrl: 'views/channels.html',
  17.         controller: 'ChannelsCtrl'
  18.       }).state('/channel/:uid',{
  19.  
  20.       }).state('/login', {
  21.         templateUrl: 'views/login.html',
  22.         controller: 'LoginCtrl'
  23.       });
  24.   }]);
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