【发布时间】:2020-04-24 19:19:22
【问题描述】:
您好,我检查了周围的答案,但没有一个按预期对我有用,基本上问题是我想在角度服务中动态设置我的 URL 协议和域名。 这是我的代码示例:
baseUrl: string = 'http://localhost:8080/test/rest/employees/'
如果我使用其他帖子中看到的这种形式,它就不起作用:
baseUrl: string = '/test/rest/emplyoees/'
【问题讨论】:
标签: angular relative-url