mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Switched from av-ts to vue-property-decorator and vue-class-component
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Vue from 'vue';
|
||||
import { Component, Lifecycle } from 'av-ts';
|
||||
import { Component } from 'vue-property-decorator';
|
||||
|
||||
interface WeatherForecast {
|
||||
dateFormatted: string;
|
||||
@@ -12,7 +12,7 @@ interface WeatherForecast {
|
||||
export default class FetchDataComponent extends Vue {
|
||||
forecasts: WeatherForecast[] = [];
|
||||
|
||||
@Lifecycle mounted() {
|
||||
mounted() {
|
||||
fetch('/api/SampleData/WeatherForecasts')
|
||||
.then(response => response.json() as Promise<WeatherForecast[]>)
|
||||
.then(data => {
|
||||
|
||||
Reference in New Issue
Block a user