Vue-cli: Why not use vue-class-component, but vue-property-decorator?

Created on 14 Aug 2018  路  2Comments  路  Source: vuejs/vue-cli

Version

3.0.0-rc.5

Node and OS info

node 8.9.0 npm 6.1.0 windows 10

Steps to reproduce

make project with class component, typescript using cli

What is expected?

I expected using vue-class-component (https://github.com/vuejs/vue-class-component) that vuejs made for class componenet

What is actually happening?

It uses vue-property-decorator(https://github.com/kaorun343/vue-property-decorator).


I just ask you why you chose vue-property-decorator than vue-class-component.
I think vue-class-component is made by vuejs. I want to ask you the reason.

All 2 comments

vue-property-decorator uses vue-classes-component internally.

@yyx990803 I guess a lot of libraries use vue-classes-component internally but why did you choose to use this particular one? Will it become official?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Benzenes picture Benzenes  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments

CodeApePro picture CodeApePro  路  3Comments

BusyHe picture BusyHe  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments