ngRoute set base url for all routes

前端 未结 2 1309
醉梦人生
醉梦人生 2020-11-29 07:39

Is it possible to add a base url to all routes in an AngularJS app? Essentially changing its location on the server (kind of, if that makes sense..

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 08:29

    The location for the base href must have trailing /. For example:

    
    

    will not work. It must be in this format:

    
    

提交回复
热议问题