Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs(examples): optimize writing of : ? (#7928)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraTea committed Sep 30, 2022
1 parent bea2848 commit bda8660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/routing/layouts/pages/dynamic.vue
Expand Up @@ -5,7 +5,7 @@
<NuxtLayout :name="layout">
Default slot
<br>
<button class="border p-1 rounded" @click="layout ? layout = null : layout = 'custom'">
<button class="border p-1 rounded" @click="layout = layout ? null : 'custom'">
Switch layout
</button>

Expand Down

0 comments on commit bda8660

Please sign in to comment.