Answer the question
In order to leave comments, you need to log in
How to get passed data in component method?
<my-component :post="post"></my-component>
I pass the post object to the component in this way.
How can I get this object in methods in the component? For example, in created?
UPD: I found them in this.$options.propsData.post, but maybe there is something more elegant?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question