At the moment I have html5 mode turned for url's in my angular site.
But I was just wondering is there anyway I could have my default url load without the "#!/" i.e. domain/#!/, I know I will have it back when I switch to a route but would be nice to not have it in default url homepage.
Here is my current routeprovider
app.config(['$routeProvider','$locationProvider', function($routeProvider,$locationProvider){
'use strict';
$routeProvider
.when('/',{
templateUrl: '/views/search.html',
controller : 'SearchCtrl'
})
.when('/result',{
templateUrl: '/views/result.html',
controller : 'resultCtrl'
})
.when('/options',{
templateUrl: '/views/options.html',
controller : 'optionsCtrl'
})
.otherwise({
redirectTo: '/'
});
$locationProvider.html5Mode(false);
$locationProvider.hashPrefix('!');
}]);
ngRoute. Is it really that much of a problem? Your home url will still work with or without it.