olova
v1.0.23
Published
A lightweight JavaScript framework for building reactive applications.
Downloads
873
Maintainers
Readme
olova
Example
<div id="app">
<template>
<div>
<div>{ count }</div>
<button @click="increment">Increment</button>
</div>
</template>
</div>
<script type="module">
import { createApp } from "//unpkg.com/olova";
const app = createApp({
data: {
count: 0,
},
methods: {
increment() {
this.count++;
},
},
});
app.mount("#app");
</script>
Installation
npm install olova
Usage
import { createApp } from "olova";
const app = createApp({
data: {
count: 0,
},
methods: {
increment() {
this.count++;
},
},
template: `
<div>
<div>{ count }</div>
<button @click="increment">Increment</button>
</div>
`,
});
app.mount("#app");