I'm trying to ue Angularjs in my offline application. All files get loaded directly, without a webserver (so from file://[PATH]). This works the first time, but then angular appends #/
to the back of the url (so index.html becomes index.html#/). When refreshing the page on this url, the firefox console shows that jQuery now claims that the operation is insecure, while the only change was the slightly modified url.
I've tried to set html5mode enabled to get rid of the #, but this only leads to a '10 digest iterations reached' list of errors.
My main index file contains
<script type="text/ng-template" src="viewparts/contactlistview.html"></script>
and my routes look like this:
var contactlistModule = angular.module("AugmentedContactList", ['ngRoute']);
contactlistModule.controller(ContactlistController);
contactlistModule.config(function($locationProvider, $routeProvider) {
$routeProvider.when('/', {
controller: 'ContactlistController',
templateUrl: 'viewparts/contactlistview.html'
}).when('/contact', {
controller: 'ContactController',
templateUrl: '/viewparts/contact.html'
}).otherwise({
redirectTo: '/'
});
});