Angular2 base url如何引用呢?

时间:2016-07-28 16:34:07

标签: typescript angular

我遇到过这篇文章Angular 2 dynamically change base url in post requests

在我的组件中,如果我实例化一个新的CustomRequestOptions实例

      let options = new CustomRequestOptions();

options.url为空。

我的问题是如何从我的组件中的CustomRequestOptions中获取基本URL?

0 个答案:

没有答案
相关问题