JSPM

  • Created
  • Published
  • Downloads 212
  • Score
    100M100P100Q87786F
  • 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 a JavaScript Framework to Build user interfaces and Scale them effectively

Build Coverage Download Version Version Build

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