How do I make JS know about the application root?

前端 未结 2 1376

I have some javascript that\'s referencing /jobs/GetIndex in an MVC project. This works great when I run it locally because I have a Controller ca

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 13:55

    Add to your head tag. It will specify the root.

    This is further explained here https://docs.angularjs.org/guide/$location

提交回复
热议问题