I'm using angular to develop an application. I'm developing off my local file system, on Windows. However, when I enable angular-route.js
, whenever I hit index.html
with my browser, it instead goes to index.html#/C:/
.
My route definition is:
myApp.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {templateUrl: 'home.html', controller: 'HomeCtrl'});
}
I think this causes the site to break, because /C:/
doesn't match any angular routes. What's going wrong? How do I fix this?