mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-22 07:05:20 +00:00
Lesson 12 - use-email-selection composable
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<h1>VMail Inbox</h1>
|
||||
|
||||
<h1>{{emailSelection.emails.size}} emails selected</h1>
|
||||
|
||||
<Suspense>
|
||||
<template #default>
|
||||
@@ -14,10 +15,17 @@
|
||||
|
||||
<script>
|
||||
import MailTable from '@/components/MailTable.vue';
|
||||
import useEmailSelection from '@/composables/use-email-selection';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
MailTable
|
||||
},
|
||||
setup(){
|
||||
return {
|
||||
emailSelection: useEmailSelection()
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user