Removing # from url in Angularjs while having .run in routes

后端 未结 7 669
感情败类
感情败类 2020-11-27 07:02

Here is my app.js route file in AngularJS

var app = angular.module(\'myApp\', [\'ngRoute\', \'ngAnimate\', \'toaster\']);
app.config([\'$routeP         


        
7条回答
  •  无人及你
    2020-11-27 07:18

    try changing:

    $locationProvider.html5Mode(true);
    

    To:

    $locationProvider.html5Mode({
       enabled: true,
       requireBase: false
    });
    

提交回复
热议问题