Skip to content

Commit 9d58c88

Browse files
ferrxSteveSandersonMS
authored andcommitted
Switched from av-ts to vue-property-decorator and vue-class-component
1 parent d016950 commit 9d58c88

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

templates/VueSpa/ClientApp/components/app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue';
2-
import { Component } from 'av-ts';
2+
import { Component } from 'vue-property-decorator';
33

44
@Component({
55
components: {

templates/VueSpa/ClientApp/components/counter/counter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue';
2-
import { Component } from 'av-ts';
2+
import { Component } from 'vue-property-decorator';
33

44
@Component
55
export default class CounterComponent extends Vue {

templates/VueSpa/ClientApp/components/fetchdata/fetchdata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue';
2-
import { Component, Lifecycle } from 'av-ts';
2+
import { Component } from 'vue-property-decorator';
33

44
interface WeatherForecast {
55
dateFormatted: string;
@@ -12,7 +12,7 @@ interface WeatherForecast {
1212
export default class FetchDataComponent extends Vue {
1313
forecasts: WeatherForecast[] = [];
1414

15-
@Lifecycle mounted() {
15+
mounted() {
1616
fetch('/api/SampleData/WeatherForecasts')
1717
.then(response => response.json() as Promise<WeatherForecast[]>)
1818
.then(data => {

templates/VueSpa/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"devDependencies": {
55
"@types/requirejs": "^2.1.28",
66
"aspnet-webpack": "^1.0.27",
7-
"av-ts": "^0.7.1",
87
"awesome-typescript-loader": "^3.0.0",
98
"bootstrap": "^3.3.6",
109
"css-loader": "^0.25.0",
@@ -17,7 +16,9 @@
1716
"typescript": "^2.2.1",
1817
"url-loader": "^0.5.7",
1918
"vue": "^2.2.2",
19+
"vue-class-component": "^5.0.1",
2020
"vue-loader": "^11.1.4",
21+
"vue-property-decorator": "^5.0.1",
2122
"vue-router": "^2.3.0",
2223
"vue-template-compiler": "^2.2.2",
2324
"webpack": "^2.2.0",

0 commit comments

Comments
 (0)