Skip to content

Commit

Permalink
fix: props example for Vue2 (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzjiaxiang authored Oct 4, 2024
1 parent b47c37e commit f859395
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/4-component-composition/1-props/vue2/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default {

<template>
<div>
<p>My name is {{ props.name }}!</p>
<p>My age is {{ props.age }}!</p>
<p>My favorite colors are {{ props.favoriteColors.join(", ") }}!</p>
<p>I am {{ props.isAvailable ? "available" : "not available" }}</p>
<p>My name is {{ name }}!</p>
<p>My age is {{ age }}!</p>
<p>My favorite colors are {{ favoriteColors.join(", ") }}!</p>
<p>I am {{ isAvailable ? "available" : "not available" }}</p>
</div>
</template>

0 comments on commit f859395

Please sign in to comment.