Skip to content

Instantly share code, notes, and snippets.

@ravipatel2293
Created July 21, 2020 11:41
Show Gist options
  • Save ravipatel2293/fcb25c01949354c37ac33e41c2198eea to your computer and use it in GitHub Desktop.
Save ravipatel2293/fcb25c01949354c37ac33e41c2198eea to your computer and use it in GitHub Desktop.
<template>
<div class="hello">
<h1>{{ title }}</h1>
<Input v-model="inputVal"/> // Find the usage of "Input" component
</div>
</template>
<script>
import Input from "./Input";
export default {
name: "HelloWorld",
components: {
Input
},
props: {
msg: String
},
data(){
return{
title:"Hello world",
inputVal:""
}
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment