JSPM

  • Created
  • Published
  • Downloads 183
  • Score
    100M100P100Q80940F
  • License MIT

Appable is JavaScript Library for building user interfaces and scale them effectively

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 JavaScript Library for building user interfaces and scale them effectively

Build Coverage Download Version Version Build

Installation

npm install -g appable

appable new my-app

cd my-app

npm start

Introduction

Building: create, build and test an app on web and mobile.

User Interface: generate views with data interpollation, event binding, hooks and auto rendering.

Scale: encapsulate components for build rich UI without DOM, share data with services and associate url


Example

Generate a component

appable generate component counter

A template interpolate and bind event

<button onclick="increment()">${counter}</button>

A component handle interaction

export class CounterComponent extends Component {

  constructor() {
    super({ selector: "counter", template });
  }

  onInit() {
      this.counter = 0;
  }

  increment() {
    return this.counter++;
  }

}

Associate component to url

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

📘 Documentation

Read the documentation to learn about build, shared service, router and component details.


ÂŠī¸ License

MIT Copyright 2020 Seeren