.config(function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider.otherwise({
templateUrl: "/angular/components/booking-system/booking-system-template.html"
});
})
$urlRouterProvider.otherwise("/booking-system");
$stateProvider
.state('booking_system', {
url: "/booking-system",
templateUrl: "/angular/components/booking-system/booking-system-template.html"
...
angular.module("exampleApp", ["increment", "ngResource", "ngRoute"])
.constant("baseUrl", "http://localhost:5500/products/")
.config(function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider.when("/list", {
templateUrl: "/tableView.html"
});
$routeProvider.when("/edit", {
templateUrl: "/editorView.html"
});
$routeProvider.when("/create", {
templateUrl: "/editorView.html"
});
$routeProvider.otherwise({
templateUrl: "/tableView.html"
});
})
.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/some_default_route', {
templateUrl: '/my_template.html',
controller: 'MyController',
// other stuff ....
})
.otherwise({
redirectTo: '/some_default_route'
});
Or does it?