- error NG2003: No suitable injection token for parameter 'endpoint' of class 'CrudService'. code example
Example: No suitable injection token for parameter 'path' of class 'BaseModel'
Update the Constructor
//import { Inject } from '@angular/core';
constructor(@Inject(String) private url: string, private http: Http)