nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
400 stars 34 forks source link

Documentation doesn't cover passing `components: {}` to the component #11

Closed nikitindiz closed 5 years ago

nikitindiz commented 6 years ago

Documentation doesn't cover passing components: {} to the component. It there a way to do that?

Try-Parser commented 6 years ago

@nikitindiz is this what you meant ?

@Component({
  components: { comp }
})
export default class Sample extends Vue {}
stevefan1999-personal commented 6 years ago

@Try-Parser Exactly. Strangely my typescript is hinting that I should use component there, not plural components...

Try-Parser commented 6 years ago

@stevefan1999 then i think you have and error import occur before the

@Component

can i see your code?

DavidBernal commented 5 years ago

Added @Try-Parser example to readme.