How to set root location for AngularJS router?

前端 未结 2 760
孤街浪徒
孤街浪徒 2020-12-20 17:58

I would like to start navigation from http://mysite.com/hello/world, not from site root.

e.g.

$ro         


        
2条回答
  •  半阙折子戏
    2020-12-20 18:11

    Adding a basetag also creates issue, double time gets appended.

    By adding a (.) for root, in template url as below: templateUrl: './mytmpl.html' - resolves the issue

提交回复
热议问题