Appable is a Javascript Micro Framework to Build and Scale User Interfaces
npm install appablenpx appable new my-appcd my-appnpm startappable generate component countersrc/app/counter/counter.component.html
<button onclick="increment()">
${ counter }
</button>src/app/counter/counter.component.js
import { Component } from 'appable';
import template from './counter.component.html';
export class CounterComponent extends Component {
counter;
constructor() {
super('counter', template);
}
onInit() {
this.counter = 0;
}
increment() {
return this.counter++;
}
}src/index.js
RouterComponent
.add('/count', 'counter', CounterComponent)
.run(new AppComponent)Read the documentation to learn about build, component, template,service and router usages: https://github.com/seeren/appable/wiki
MIT Copyright Seeren