Skip to content

Instantly share code, notes, and snippets.

@pzuraq
Created January 27, 2013 02:09
Show Gist options
  • Save pzuraq/4645838 to your computer and use it in GitHub Desktop.
Save pzuraq/4645838 to your computer and use it in GitHub Desktop.
'use strict';
/* http://docs.angularjs.org/#!angular.service */
// Declare app level module which depends on filters, and services
angular.module('case', [ 'case.services' ]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/inventory', {templateUrl: 'partials/inventory.html', controller: InventoryCtrl});
$routeProvider.when('/inventory/:currentPage', {templateUrl: 'partials/inventory.html', controller: InventoryCtrl});
$routeProvider.when('/inventory/:currentPage/:_id', {templateUrl: 'partials/inventory.html', controller: InventoryCtrl});
$routeProvider.otherwise({redirectTo: '/inventory'});
//$locationProvider.html5Mode(true);
/*$rootScope.$on('$afterRouteChange', function(){
$window.scrollTo(0,0);
});*/
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment