2021-02-19 21:33:23 +00:00
|
|
|
<template>
|
2021-02-26 12:44:38 +00:00
|
|
|
<div id="app">
|
|
|
|
<!-- la balise contacts corresponds au composant contacts passé ci-dessous -->
|
|
|
|
<contacts></contacts>
|
|
|
|
</div>
|
2021-02-19 21:33:23 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-02-26 12:44:38 +00:00
|
|
|
// importe dans contacts les datas d'une requête rest GET en json
|
|
|
|
import contacts from './test1/Contacts.vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'app',
|
|
|
|
components: {
|
|
|
|
// passe l'objet contacts comme composant
|
|
|
|
contacts,
|
|
|
|
}
|
|
|
|
}
|
2021-02-19 21:33:23 +00:00
|
|
|
</script>
|
2021-02-26 12:44:38 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
#app {}
|
|
|
|
.container {}
|
|
|
|
.componentItem{}
|
|
|
|
</style>
|