Props in component in Vue.js

This component does not have access to the data element in parent Vue instance. You can understand it with following example

You will get the following error

To solve this proplem, we can use props
Here, I am passing the prop street to the component

You can add props:['street'] to the Vue instance