update sample code

pull/5649/head
Tan Li Hau 5 years ago
parent 7971e62c4f
commit fac4f66b7c

@ -11,34 +11,34 @@
<h2>Size</h2> <h2>Size</h2>
<label> <label>
<input type=radio group={scoops} value={1}> <input type=radio group={scoops} name="scoops" value={1}>
One scoop One scoop
</label> </label>
<label> <label>
<input type=radio group={scoops} value={2}> <input type=radio group={scoops} name="scoops" value={2}>
Two scoops Two scoops
</label> </label>
<label> <label>
<input type=radio group={scoops} value={3}> <input type=radio group={scoops} name="scoops" value={3}>
Three scoops Three scoops
</label> </label>
<h2>Flavours</h2> <h2>Flavours</h2>
<label> <label>
<input type=checkbox group={flavours} value="Cookies and cream"> <input type=checkbox group={flavours} name="flavours" value="Cookies and cream">
Cookies and cream Cookies and cream
</label> </label>
<label> <label>
<input type=checkbox group={flavours} value="Mint choc chip"> <input type=checkbox group={flavours} name="flavours" value="Mint choc chip">
Mint choc chip Mint choc chip
</label> </label>
<label> <label>
<input type=checkbox group={flavours} value="Raspberry ripple"> <input type=checkbox group={flavours} name="flavours" value="Raspberry ripple">
Raspberry ripple Raspberry ripple
</label> </label>

@ -17,17 +17,17 @@
<h2>Size</h2> <h2>Size</h2>
<label> <label>
<input type=radio bind:group={scoops} value={1}> <input type=radio bind:group={scoops} name="scoops" value={1}>
One scoop One scoop
</label> </label>
<label> <label>
<input type=radio bind:group={scoops} value={2}> <input type=radio bind:group={scoops} name="scoops" value={2}>
Two scoops Two scoops
</label> </label>
<label> <label>
<input type=radio bind:group={scoops} value={3}> <input type=radio bind:group={scoops} name="scoops" value={3}>
Three scoops Three scoops
</label> </label>
@ -35,7 +35,7 @@
{#each menu as flavour} {#each menu as flavour}
<label> <label>
<input type=checkbox bind:group={flavours} value={flavour}> <input type=checkbox bind:group={flavours} name="flavours" value={flavour}>
{flavour} {flavour}
</label> </label>
{/each} {/each}

@ -33,4 +33,4 @@ let menu = [
{/each} {/each}
``` ```
It's now easy to expand our ice cream menu in new and exciting directions. It's now easy to expand our ice cream menu in new and exciting directions.
Loading…
Cancel
Save