Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuejs props

// Component file
<script>
  export default {
    props: {
      name: {
        type: String,
        required: true
      }
    }
  };
</script>

// File you call your component
<template>
  <your-component name="name"></your-component>
</template>
 
PREVIOUS NEXT
Tagged: #vuejs #props
ADD COMMENT
Topic
Name
9+3 =