An open API service indexing awesome lists of open source software.

https://github.com/seeren/appable

🧱 Appable is a Javascript Micro Framework to Build and Scale User Interfaces
https://github.com/seeren/appable

components javascript-micro-framework routing services

Last synced: 4 months ago
JSON representation

🧱 Appable is a Javascript Micro Framework to Build and Scale User Interfaces

Awesome Lists containing this project

README

          

Appable


Appable is a Javascript Micro Framework to Build and Scale User Interfaces


Build
Coverage
Download
Version
Version
Build

## Install

```bash
npm install appable
```

## Generate project

```bash
npx appable new my-app
```

## Serve project

```bash
cd my-app
```

```bash
npm start
```

* * *

## Generate Component

```bash
appable generate component counter
```

## Interpolate and Bind

`src/app/counter/counter.component.html`

```html

${ counter }

```

## Use Life Cycle

`src/app/counter/counter.component.js`

```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++;
}

}
```

## Route URL

`src/index.js`

```js
RouterComponent
.add('/count', 'counter', CounterComponent)
.run(new AppComponent)
```

* * *

## 📘 Documentation

Read the documentation to learn about build, component, template,service and router usages:

* * *

## ©️ License

[MIT](LICENSE) Copyright Seeren