Answers for "ng2003"

0

ng2003

//import { Inject } from '@angular/core';

constructor(@Inject(String) private url: string, private http: Http)
Posted by: Guest on December-17-2020
0

Angular 9 : Error NG2003: No suitable injection token for parameter 'url' of class 'DataService'. Found string

//import { Inject } from '@angular/core';

@Inject('url') private url: string;
Posted by: Guest on December-17-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language