Skip to content

Conversation

finico
Copy link
Contributor

@finico finico commented Jan 30, 2016

to create the components that do not need such options as a template, props, replace, etc
This is useful when mounting component to the existing DOM-element and it already contains a template with the expressions and need only data, methods, computer and hooks
eg

import Component from 'vue-class-component'

@Component
class Some {
  data () {
    ...
  }
  someHandler() {
    ...
  }
  get someComputed() {
    ...
  }
}

yyx990803 added a commit that referenced this pull request Jan 31, 2016
Added the ability to decorate without options
@yyx990803 yyx990803 merged commit 93ab3c9 into vuejs:master Jan 31, 2016
@yyx990803
Copy link
Member

👍

@finico finico deleted the feature/decorator-without-options branch January 31, 2016 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants