angular ng2003 code example
Example 1: No suitable injection token for parameter 'path' of class 'BaseModel'
Update the Constructor
constructor(@Inject(String) private url: string, private http: Http)
Example 2: Angular 9 : Error NG2003: No suitable injection token for parameter 'url' of class 'DataService'. Found string
@Inject('url') private url: string;
Example 3: Angular 9 : Error NG2003: No suitable injection token for parameter 'url' of class 'DataService'. Found string
constructor(@Inject(String) private url: string, private http: Http)