After adding
$locationProvider.html5Mode({
enabled: true
//requireBase: false
});
I am getting 404(not found) on page refresh. What should I do to solve this?.
您必须在index.html文件中设置基本网址
<base href="/folder name/" />
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.