1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| const app = Vue.createApp({
| data() {
| return {
| detailsAreVisible: false,
| friends: [
| {
| id: 'manuel',
| name: 'Manuel Lorenz',
| phone: '01234 5678 991',
| email: 'manuel@localhost.com',
| },
| {
| id: 'julie',
| name: 'Julie Jones',
| phone: '09876 543 221',
| email: 'julie@localhost.com',
| },
| ],
| };
| },
| methods: {
| toggleDetails() {
| this.detailsAreVisible = !this.detailsAreVisible;
| }
| }
| });
|
| app.mount('#app');
|
|