Is there a equivalent to Vue.js props in Nue.js? #68
Answered
by
tipiirai
hichem-dahi
asked this question in
Q&A
-
The contact object passed from the parent as an attribute is not accessible in the script's tag.
|
Beta Was this translation helpful? Give feedback.
Answered by
tipiirai
Oct 2, 2023
Replies: 1 comment
-
Params are given as the argument. For example: <script>
constructor(params) {
console.log(params.contact)
}
mounted(params) {
console.log(params.contact)
}
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hichem-dahi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Params are given as the argument. For example: