我正在使用angular v6,当我试图在我的服务构造函数中使用angular2-jwt中的AuthHttp时,页面不会做任何请求或呈现。我已经将AUTH_PROVIDERS添加到提供程序中,但同时没有错误。
import { AuthHttp } from 'angular2-jwt';
@Injectable()
export class VehicleService {
private readonly vehiclesEndPoint = "/api/vehicle/";
constructor(private http: HttpClient, private authHttp: AuthHttp) { }有什么想法吗?
发布于 2018-07-22 22:11:36
请确保还导入了HttpClientModule。
https://stackoverflow.com/questions/50568166
复制相似问题