什么是改变$ http base url最干净的方法?

时间:2015-12-07 13:47:44

标签: angularjs

我想找一个我运行的单独的http服务器,Angular $ http服务。如何在不使用$ location的情况下更改基本网址? 现在它指向9000,对于我想要将其更改为3000的通话。

1 个答案:

答案 0 :(得分:0)

如果您正在使用NodeJs的grunt或gulp(您应该使用),请使用connectmod rewrite