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 : ?
Browse files Browse the repository at this point in the history
Saw it in the documentation, thought it might be better.
  • Loading branch information
AuroraTea committed Sep 30, 2022
1 parent bea2848 commit b9bad3a
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 b9bad3a

Please sign in to comment.