I am new in Angular js.I try to make html5 mode true in one of my controller .In my angular js app there is 3 controller but i need to html5 mode true in one of them not in all controller. I am using
App.config(function($locationProvider) {
$locationProvider.html5Mode(true);
});
But this config effect all of my controller.I need to add html5mode true under one of my controller.I don't know is it possible or not .
Providers are only available when instantiating an Angular module. You can only use providers for a module before it is instantiated inside a config block. So you can configure $locationProvider
once per module and not at the controller level.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.