mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-26 19:47:30 +00:00
Make templates work with nonempty baseUrls (e.g., IIS virtual directories)
This commit is contained in:
@@ -6,7 +6,7 @@ export class Fetchdata {
|
||||
public forecasts: WeatherForecast[];
|
||||
|
||||
constructor(http: HttpClient) {
|
||||
http.fetch('/api/SampleData/WeatherForecasts')
|
||||
http.fetch('api/SampleData/WeatherForecasts')
|
||||
.then(result => result.json() as Promise<WeatherForecast[]>)
|
||||
.then(data => {
|
||||
this.forecasts = data;
|
||||
|
||||
Reference in New Issue
Block a user