SHARE
TWEET

Untitled

a guest May 25th, 2016 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. giimii_app.config(['$routeProvider', '$locationProvider',
  2.                    function($routeProvider, $locationProvider) {
  3.                        $routeProvider.
  4.                            when('/', {
  5.                                templateUrl: '/client/views/main.html',
  6.                                controller: 'mainCtrl'
  7.                            }).
  8.                            when('/login', {
  9.                                templateUrl: '/client/views/login.html',
  10.                                controller: 'loginCtrl'
  11.                            }).
  12.                            when('/register', {
  13.                                templateUrl: '/client/views/register.html',
  14.                                controller: 'registerCtrl'
  15.                            }).
  16.                            when('/profile', {
  17.                                templateUrl: '/client/views/profile.html',
  18.                                controller: 'profileCtrl'
  19.                            }).
  20.                            when('/profile/edit', {
  21.                                templateUrl: '/client/views/profile_edit.html'
  22.                            }).
  23.                            /*when('/byaccid/:accid/profile', {
  24.                                templateUrl: '/client/views/profile.html',
  25.                                controller: 'profileCtrl'
  26.                            }).
  27.                            when('/profile/edit', {
  28.                                templateUrl: '/client/views/profile_edit.html',
  29.                                controller: 'profileEditCtrl'
  30.                            }).
  31.                            when('/byaccid/:accid/profile/edit', {
  32.                                templateUrl: '/client/views/profile_edit.html',
  33.                                controller: 'profileCtrl'
  34.                            }).*/
  35.                            otherwise({
  36.                                redirectTo: '/'
  37.                            });
  38.  
  39.                        $locationProvider.html5Mode(true);
  40.                    }]);
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