Error: No provider for HttpHandler in angular2

后端 未结 2 569
别跟我提以往
别跟我提以往 2021-02-03 17:11

I am trying to implement HttpCache through interceptor. Following is the caching-interceptor.service.ts

import { HttpRequest, HttpResponse, HttpInterceptor, Http         


        
2条回答
  •  悲&欢浪女
    2021-02-03 17:41

    Add HttpClientModule to your imports[] in app.module.ts. This might be one of the mistakes.

提交回复
热议问题