Created
July 21, 2020 11:41
-
-
Save ravipatel2293/fcb25c01949354c37ac33e41c2198eea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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