GithubHelp home page GithubHelp logo

calebeaires / vue-decorator Goto Github PK

View Code? Open in Web Editor NEW
34.0 6.0 3.0 18 KB

Custom decorators to vue-class-component that fits Vue 3

JavaScript 85.39% TypeScript 14.61%
vuejs3 typescript decorators

vue-decorator's Introduction

Welcome to vue-decorator

Hi!, this is a wrapper to two good projects:

  1. vue-class-component
  2. vue-property-decorator

This give us custom decorators provide by vue-class-component and vue-property-decorator that fits Vue 3

##Compatible: Vue 3

Install

yarn

yarn add vue-decorator

npm

npm i vue-decorator

vue-decorator's People

Contributors

calebeaires avatar shadow-light avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vue-decorator's Issues

Errors in vue-property-decorator

I tried vue-class-component with vue-property-decorator at first and I had errors. Researched for many long days, until I found this vue-decorator library and the errors went away and finally could build an Ionic Vue app, using the Vue and Options classes that come with it.

But I'm still curious about why if I switch to Vue and Component classes of the vue-property-decorator packages I get errors.
The errors happens in the browser's console when the app is being debugged, not in VSCode console while compiling it, that means the error happens when the typescript vue files are transpiled to javascript (at runtime).

Is there a way to solve the vue-property-decorator errors, or am I stuck using vue-decorator?

image
image

No Errors

image

Provide / Inject decorator

Hey

Thanks for this repo !
What about provide/inject decorator?

The only way to use provide/inject actually is to do it through the@Options decorator (with vue-class-component), provide/inject is not accessible through this.$ as for watch : this.$watch, I hope it is possible to implement it with a decorator.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.