No suitable injection token for parameter 'calendarOptions' of class ''. Consider using the @Inject decorator to specify an injection token. code example

Example 1: 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)

Example 2: ng2003

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

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