Angular 2 HTTP “Cannot resolve all parameters for 'AppService'”

前端 未结 4 1368
梦毁少年i
梦毁少年i 2020-12-10 01:27

I tried to import the http provider into a service, but I\'m getting the following error:

Cannot resolve all parameters for \'AppService\'(?). Make su

4条回答
  •  旧巷少年郎
    2020-12-10 01:41

    I had the same issue, and for me the problem was that i was missing import { HttpModule } from '@angular/http' in app.module.ts

提交回复
热议问题