我们有一个DotNetCore应用程序接口,它返回一个响应模型,并带有数据的泛型: public class SingleModelResponse<T> : ISingleModelResponse<response.ErrorMessage = ex.Message; return response.ToHttpResponse();
} 我的angular服务设置为接收OrganistionStats: loadStats(organisationId: number
我很难从服务中用v7创建一个POST请求。我的服务类已经有一些get请求从我的api中提取数据。现在,我需要发布数据,但我不知道格式/语法(仍然是新的角度)。在VSCode中,我可以看到它,Property 'subscribe' does not exist on type 'void'.说Shipment.service.ts
import{ Injectable } from