Skip to content

Instantly share code, notes, and snippets.

@shershen08
Created October 26, 2019 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shershen08/87aef81d80b9416b025644dd21518efc to your computer and use it in GitHub Desktop.
Save shershen08/87aef81d80b9416b025644dd21518efc to your computer and use it in GitHub Desktop.
vue + js child component
export class SearchForm extends Vue {
name: 'SearchForm',
props: {
colot: {
type: Object
}
},
data(){
return {
}
}
public search: string = '';
@Prop() private labels!: object;
@Watch('search')
@Emit('search:text')
private onSeachChanged(val: string, oldVal: string) {
return val;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment