Switched from av-ts to vue-property-decorator and vue-class-component

This commit is contained in:
ferrx
2017-05-05 15:56:28 -04:00
committed by Steve Sanderson
parent d016950e50
commit 9d58c8836b
4 changed files with 6 additions and 5 deletions

View File

@@ -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 => {