vue-nonreactivity-decorator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

vue-nonreactivity-decorator

vue-nonreactivity-decorator supports non-reactivity features that are not supported by vue-property-decorator. Use decorators for class properties that don't require reactivity.

You can refer to the example below.

import { Vue, Component } from 'vue-property-decorator'
import NonReactivity from 'vue-nonreactivity-decorator'

@Component
class YourComponent extends Vue {

    @NonReactivity('Hello, World!') // Initial value
    private yourProperty!: string

    sayHello(): void {
        console.log(yourProperty)
        this.yourProperty = 'Vue is awesome'
    }

}

Install

Can be downloaded from here.

npm i vue-nonreactivity-decorator

Package Sidebar

Install

npm i vue-nonreactivity-decorator

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

3.93 kB

Total Files

5

Last publish

Collaborators

  • izure1