Package Exports
- appable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (appable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Appable
Appable is a JavaScript Framework to Build user interfaces and Scale them effectively
Installation
npm install appable
npx appable new my-app
cd my-app
npm start
Example
- Generate a counter component:
appable generate component counter
- Template is auto rendered:
src/app/counter/counter.component.html
<button onclick="increment()">${counter}</button>
- Component use life cycle:
src/app/counter/counter.component.js
export class CounterComponent extends Component {
constructor() {
super({ selector: "counter", template });
}
onInit() {
this.counter = 0;
}
increment() {
return this.counter++;
}
}
- Route component:
src/index.js
RouterComponent
.add('/count', 'counter', CounterComponent)
.run(new AppComponent)
đ Documentation
Read the documentation to learn about build, component, template,service and router.
ÂŠī¸ License
MIT Copyright 2020 Seeren