javascript - html5mode doesn't remove hashbangs -
i have gulp connect server running , want remove hashbangs routeprovider using in angularjs project.
i have in app.js:
//setting html5 location mode companiesapp.config(['$locationprovider', function ($locationprovider) { $locationprovider.hashprefix('!'); $locationprovider.html5mode(true); } ]);
i know if remove hashprefix work still http://www.example.com/#example-uri
how rid of entirely. isn't html5mode(true) supposed that?
yes, $locationprovider.html5mode(true);
should that.
but able access pages directly browser, should configure server redirect request index page, call partial internally. check document on angular-ui documentation how configure document so.
Comments
Post a Comment