繁体   English   中英

可以同时使用@ angular / http和@ angular / common / http在Angular ASP.NET应用程序中引起问题吗?

[英]Could using @angular/http and @angular/common/http at the same time cause problems in an Angular ASP.NET application?

当我导入时:

import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';

接着:

constructor(private http: Http, private httpClient: HttpClient) {}

this.httpClient.post(...
this.http.post(...

在这种情况下,我使用Microsoft Identity,该身份依赖Cookie进行身份验证。

如果我以一种方式发布登录名并以另一种方式发布注册,可能会引起问题吗?

当可以使用HttpClient时,为什么要使用旧的,已弃用的Http
HTTP和HTTPClient在角度4中的区别?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM