Angularjs $location service apparently not parsing url?

前端 未结 5 1727
你的背包
你的背包 2020-12-09 01:53

I\'m using angular in an application which is, basically, a table with search results. Access to this table can be achieved via an url like http://myapp/?client=clien

5条回答
  •  再見小時候
    2020-12-09 02:28

    If you don't want to specify the base tag, you can specify require base false.

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

提交回复
热议问题