Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

prop sent via link has no spaces vuejs

<!-- Send the prop like this in your HTML file: -->
<component :prop_name="'propName'"></component>
<!-- Make sure not to use caps on :prop_name, and to name the prop that way in your component file. Otherwise, there might be issues when sending the data. -->

<!-- In your component.vue file -->
export default {
  props: [
    'prop_name'
  ]
}
 
PREVIOUS NEXT
Tagged: #prop #link #spaces #vuejs
ADD COMMENT
Topic
Name
7+5 =