1.0.0 • Published 4 years ago

vue3-log v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

vue3-log

log the things that you want when element is mounted

Installation

use npm :

npm i vue3-log

then use it in your main.js with:

import vue_log3 from "vue-log3"
createApp(/* ... */).use(vue_log3).mount(/* ... */)

Usage

<button v-log="123">Hello</button> <!--logs the number--> 
<button v-log="'hello'">Hello</button> <!--logs the string--> 
<button v-log="[1,2,3]">Hello</button> <!--logs the array--> 
<button v-log="{a:2}">Hello</button> <!--logs the object-->