From e43128f3160b185344522749ea232e8c55b2c72e Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 17 Apr 2018 21:53:02 -0400 Subject: [PATCH] s8e112.5 sibling communication --- section-code/src/components/User.vue | 4 +++- section-code/src/components/UserDetail.vue | 5 +++-- section-code/src/components/UserEdit.vue | 12 +++++++++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/section-code/src/components/User.vue b/section-code/src/components/User.vue index e66a851..fd21a52 100644 --- a/section-code/src/components/User.vue +++ b/section-code/src/components/User.vue @@ -10,10 +10,11 @@ :name="name" @nameWasReset="name = $event" :resetFn="resetName" + :userAge="age" >
- +
@@ -27,6 +28,7 @@ data(){ return { name: "Tyrel", + age: 29 } }, methods: { diff --git a/section-code/src/components/UserDetail.vue b/section-code/src/components/UserDetail.vue index 45e00ab..619d83b 100644 --- a/section-code/src/components/UserDetail.vue +++ b/section-code/src/components/UserDetail.vue @@ -2,7 +2,7 @@

You may view the User Details here

Many Details

-

User Name: {{ switchName() }}

+

User Name: {{ switchName() }}, {{userAge}}

@@ -10,7 +10,8 @@