angularjs - How should I change the angular routing? -


good evening, i'm writing application on mobile platform steroids, angular.js , firebase.js. i've faced such problem: page not load, because trying access strange url: file://file:///users/patutinskijfedor/desktop/firebase/willy/www/.

error: failed execute 'replacestate' on 'history': history state object url 'file://file:///users/patutinskijfedor/desktop/firebase/willy/www/' cannot created in document origin 'null'. 

i read issue in internet , realized problem routing in angular. looks (file app.js):

angular.module('scbi', ['scbi.controllers','ngroute']).config(function($routeprovider, $locationprovider){     $locationprovider.html5mode(true);      $routeprovider.when('/teachers',{ templateurl: 'teachers.html'});     $routeprovider.when('/teachers/:id', {templateurl: 't.html', controller: 'teacherslistcontroller'});     $routeprovider.when('/', {templateurl: 'authorization.html', controller: 'authorizationcontroller'});     $routeprovider.otherwise({redirectto:'/'}); }); 

so problem might html5mode. question is: how can fix routing in app.js? full code of project here.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -