Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyamotodev123/731ce3bf6d50f5ca3bf4 to your computer and use it in GitHub Desktop.
Save miyamotodev123/731ce3bf6d50f5ca3bf4 to your computer and use it in GitHub Desktop.
// defining our routes
(function() {
angular.module('app')
.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: '/views/landing.html',
})
.when('/login', {
templateUrl: '/views/login.html',
})
.when('/signup', {
templateUrl: '/views/signup.html'
})
.when('/profile', {
templateUrl: '/views/profile.html',
controller: 'ProfileController'
})
.otherwise({
redirectTo: '/'
});
// use the HTML5 History API
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
}]);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment