Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular.module('restGallery', ['ngResource', 'ngRoute'])
  2.     .config(['$routeProvider', '$locationProvider',
  3.         function($routeProvider, $locationProvider){
  4.             $routeProvider
  5.             .when('/', {
  6.                     templateUrl: 'static/partials/landing.html',
  7.                     controller: IndexConroller
  8.                 })
  9.             .when('/about', {
  10.                     templateUrl: 'static/partials/about.html',
  11.                     controller: AboutController
  12.                 })
  13.             .when('/image/:imageId', {
  14.                     templateUrl: 'static/partials/image/image-detail.html',
  15.                     controller: ImageDetailController
  16.                 })
  17.             .when('/image', {
  18.                     templateUrl: 'static/partials/image/image-list.html',
  19.                     controller: ImageListController
  20.                 })
  21.             .when('/user/:userId', {
  22.                     templateUrl: 'static/partials/user/user-detail.html',
  23.                     controller: UserDetailController
  24.                 })
  25.             .when('/user', {
  26.                     templateUrl: 'static/partials/user/user-list.html',
  27.                     controller: UserListController
  28.                 })
  29.             .when('/gallery/:galleryId',{
  30.                     templateUrl: 'static/partials/gallery/gallery-detail.html',
  31.                     controller: GalleryDetailController
  32.                 })
  33.             .when('/gallery', {
  34.                     templateUrl: 'static/partials/gallery/gallery-list.html',
  35.                     controller: GalleryListController
  36.                 })
  37.             .otherwise({
  38.                     redirectTo: '/'
  39.                 });
  40.         }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement