mirror of https://github.com/nuxt/nuxt.git
docs(examples): optimize writing of ` : ? ` (#7928)
This commit is contained in:
parent
bea2848246
commit
bda866050d
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue