Props - Vue

Component

The answer is 42

Source Code

<script>
export default {
	props: {
		answer: String
	}
}
</script>

<template>
  <p>The answer is {{answer}}</p>
</template>