Check out example codes for "No suitable injection token for parameter 'path' of class 'BaseModel'". It will help you in understanding the concepts better.

Code Example 1

Update the Constructor

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

constructor(@Inject(String) private url: string, private http: Http)

Learn ReactJs, React Native from akashmittal.com