PacktPublishing / -Vue.js-3-By-Example

Vue.js 3 By Example, published by Packt
MIT License
174 stars 67 forks source link

Chapter 2: User.vue component won't display the current user plan #7

Closed cdpaiva closed 2 years ago

cdpaiva commented 2 years ago

Due to a small typo, the user plan won't be rendered.

In Chapter02/src/components/User.vue, line 10:

<li>plan: {{userData.pla && userData.plan.name}}</li>

Simply correcting the property to userData.plan will do the job.