Getting error in angular
NG0201: No provider for {token} found!
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Getting error in angular
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajesh GamiRank #30 · 41.5K reputationPosted Jan 5, 2023, 7:02 AM EST
Ensure that your service is registered in the list of providers of a NgModule or has the Injectable decorator with a providedIn property at top.
import { Injectable } from '@angular/core'; @Injectable({providedIn:'root'}) export class DataService { }