What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-23 02:15:04
slot-scope vue
<div id="app"> <input type="text" v-model="text" @keyup.enter="addItem"> <list :items="items" @delete="removeItem"></list> <list :items="items" @delete="... Add solution -
Html 2022-01-22 02:35:26
five common positions for expressions in Lit templates
<!-- Child nodes --> <h1>${this.pageTitle}</h1> <!-- Attribute --> <div class=${this.myTheme}></div> <!-- Boolean attribute --> <p ?hidden=${this.isHidden}>I may be in hiding.</p> <!-- Property -... Add solution -
Other 2021-10-22 21:43:13
array to string vue
<div id="app"> <p>item 1 = {{ item1 }}</p> <p>Result = {{result}}</p> <button @click="myFunction()">Click Me</button> </div> <script> new Vue({ el: '#app', data: { ite... Add solution -
Other 2021-10-07 04:24:02
sandwich menu with tailwind
1 2 3 4 5 6 7 8 9 <header x-data="{ mobileMenuOpen : false }" class="flex flex-wrap flex-row justify-between md:items-center md:space-x-4 bg-white py-6 px-6 relative"> <a href="#" class="bl... Add solution -
Javascript 2021-09-10 14:02:04
vue redirect to route
<button @click="goToHome()"> </button> //inside the script section, define the function: methods:{ goToHome(){ this.$router.push('/home'); } } //if the route accepts params, you can also use this.$router.push({name:... Add solution -
Html 2021-09-06 06:26:02
vue 3 emits
<!-- From the child component, you want to do an "emit". This tells the parent to run the callback specified in the child component reference. Psuedo code: --> <child> <button @click="send">Click Me</button&... Add solution
Best helpers
Ranking is empty