This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <input v-model="name" /> | |
| <p>{{ msg }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs, computed, watch } from "vue"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <input v-model.lazy="name" /> | |
| <p>{{ msg }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs, computed } from "vue"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <input v-model.lazy="name" /> | |
| <p>{{ name }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs } from "vue"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createApp } from "vue"; | |
| import { createWebHistory, createRouter } from "vue-router"; | |
| import firebase from "firebase/app"; | |
| import "firebase/analytics"; | |
| import "firebase/auth"; | |
| import "firebase/firestore"; | |
| var firebaseConfig = { | |
| apiKey: process.env.VUE_APP_API_KEY, | |
| authDomain: process.env.VUE_APP_AUTH_DOMAIN, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import firebase from 'firebase/app' | |
| import 'firebase/auth' | |
| import 'firebase/firestore' | |
| import 'firebase/database' | |
| import moment from 'moment' | |
| function CREATE_DOCUMENT(collection, obj) { | |
| return new Promise((resolve, reject) => { | |
| firebase | |
| .firestore() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createNewInstance(myInstanceId) { | |
| Vue.component('button-counter', { | |
| data: function () { | |
| return { | |
| count: 0 | |
| } | |
| }, | |
| template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>' | |
| }) | |
| new Vue({ el: '#instance-' + myInstanceId }) |
NewerOlder