Skip to content

Instantly share code, notes, and snippets.

@boo1ean
Created March 9, 2014 13:07
Show Gist options
  • Save boo1ean/9447480 to your computer and use it in GitHub Desktop.
Save boo1ean/9447480 to your computer and use it in GitHub Desktop.
'use strict';
angular.module('fitApp', ['ngRoute']).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider.
when('/', {
templateUrl: 'partials/index.html',
controller: IndexCtrl
}).
when('/exercises', {
templateUrl: 'partials/exercises.html',
controller: ExercisesCtrl
}).
when('/exercises/add', {
templateUrl: 'partials/exercises-add.html',
controller: ExercisesAddCtrl
}).
otherwise({
redirectTo: '/'
});
$locationProvider.html5Mode(true);
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment