AngularJs页面刷新问题

时间:2015-07-15 06:25:14

标签: angularjs refresh

在角度页面上刷新时出现404错误。 HTTP状态404 - / product / P12345

以下是我的路线配置

MyApp.config(function($routeProvider, $locationProvider) {  
    $routeProvider
    .when('/product', {    
        templateUrl: 'components/product/product.html',
        controller: 'ProductCtrl'   
});

我第一次点击网址http://localhost:8080/index.html#/product/P12345在浏览器网址中转换为http://localhost:8080/product/P12345 当我点击刷新按钮获得404错误。

不确定导致问题的原因,非常感谢任何帮助。

0 个答案:

没有答案
相关问题