From dc3d1815cf9b5812060ae76a81f0666f523f5c63 Mon Sep 17 00:00:00 2001 From: Isaac Levin <8878502+isaac2004@users.noreply.github.com> Date: Fri, 7 Jun 2019 11:34:23 -0400 Subject: [PATCH] Update fetch-data.component.ts --- .../src/app/fetch-data/fetch-data.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.ts b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.ts index 75aadd8bfe..2099ceee6b 100644 --- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.ts +++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.ts @@ -1,16 +1,16 @@ -import { Component, Inject } from "@angular/core"; -import { HttpClient } from "@angular/common/http"; +import { Component, Inject } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; @Component({ - selector: "app-fetch-data", - templateUrl: "./fetch-data.component.html" + selector: 'app-fetch-data', + templateUrl: './fetch-data.component.html' }) export class FetchDataComponent { public forecasts: WeatherForecast[]; - constructor(http: HttpClient, @Inject("BASE_URL") baseUrl: string) { + constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) { http - .get(baseUrl + "api/SampleData/WeatherForecasts") + .get(baseUrl + 'api/SampleData/WeatherForecasts') .subscribe( result => { this.forecasts = result;