skip to Main Content

Property in angular is not being defined by the constructor? – Html

I am using the Google Maps API in my project I am getting an undefined error for my code: export class AppComponent { startLocation: string; endLocation: string; maneuvers: any[]; constructor(private mapQuestService: MapQuestService) {} getDirections() { this.mapQuestService.getDirections(this.startLocation, this.endLocation).subscribe(data => { this.maneuvers…

VIEW QUESTION
Back To Top
Search