vue-nonreactivity-decorator
v1.0.1
Published
Non reactivity property decorator for vue-class-component
Downloads
9
Maintainers
Readme
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