Routing in subdirectory in Angular.js

前端 未结 1 1625
一个人的身影
一个人的身影 2021-02-02 12:31

Is it possible to develop an Angular.js application in a way that would be abstracted from the the web directory path in which it will be deployed?

I am trying to put an

相关标签:
1条回答
  • 2021-02-02 12:50

    Try setting a <base href="/sudirectory"/> in your <head></head>. That's what I needed to do to get mine working, IIRC

    Word of caution: This will mess with any anchor tags that have href="#", as well as act as the root for image srcs and the like.

    0 讨论(0)
提交回复
热议问题