Created
April 22, 2020 02:40
-
-
Save lakshyabatman/c23523100134951c84462ebcc499a2a1 to your computer and use it in GitHub Desktop.
Test component with props
This file contains 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> | |
<p>Hi this is test template</p> | |
</div> | |
</template> | |
<script lang="ts"> | |
import Vue from 'vue'; | |
import { Component, Prop} from 'vue-property-decorator'; | |
@Component({ | |
name:'Test component' | |
}) | |
export default class TestComponent extends Vue { | |
@Prop({default: 'default value}) | |
myProp : string | { isObject : true } | any | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment