add event handler to input event

This commit is contained in:
Enrique Hernandez 2020-10-24 12:31:51 -05:00
commit 07cfddab1d
6 changed files with 108 additions and 58 deletions

View file

@ -6,7 +6,7 @@
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { defineComponent, inject } from 'vue';
// import UIindex from "@/components/UI/index.vue";
// import Microphone from "@/components/microphone/index.vue";
import InputItem from "@/components/UI/UIDetails/inputItem.vue";
@ -14,6 +14,10 @@
export default defineComponent({
name: "HomeIndex",
components: { InputItem },
setup() {
const emitter: any = inject("mitt");
emitter.on('newSelfMessage', (payload: any) => console.log('foo', payload) )
}
});
</script>