SHARE
TWEET

Untitled

a guest Oct 17th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $stateProvider
  2.             .state('dashboard', {
  3.                 url: '/',
  4.                 template: '<div><h3> some title </h3><ui-view></ui-view></div>',
  5.                 controller: 'SomeController',
  6.                 controllerAs: 'vm',
  7.                 resolve: {
  8.                     user: ['UserService', function (UserService) {
  9.                         return UserService.GetCurrent();
  10.                     }]
  11.                 }
  12.             })
  13.             .state('dashboard.home', {
  14.                 url: 'home',
  15.                 templateUrl: 'templates/home.html'
  16.             })
  17.             .state('dashboard.profile', {
  18.                 url: 'profile',
  19.                 templateUrl: 'templates/profile.html',
  20.                 controller: 'ProfileController',
  21.                 controllerAs: 'vm'
  22.             })
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