0.2.5 • Published 3 years ago

@kospa/base v0.2.5

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

kospa (Knockout Single-Page Application)

kospa is a lightweight and modular framework built on top of Knockout.JS to build powerful Single Page Applications.

Packages

  • @kospa/base: Base components (composition, activation, module loading)
  • @kospa/router: Router component
  • @kospa/dialog: Dialog component
  • @kospa/engine: Knockout module-based Template Engine
  • @kospa/bootstrap: Application startup component

Core concept

  • Composition: a process that loads a ViewModel and a View using a module loader and bind them in the DOM.
  • Activation: a process that loads, activate and deactivate a ViewModel module.

Lifecycle

ViewModels in kospa follows the following lifecycle: 1. activate: Load data and initialize the ViewModel before binding it to the DOM. 2. bindingComplete: Run after the ViewModel is bound to the DOM. 3. descendantsComplete: Run after all asynchronous binding are applied to the DOM. 4. compositionComplete: Run when the composition process is complete. 5. deactivate: Run when the ViewModel is unbound from the DOM. 6. dispose: Run before the DOM node is removed.

License

This project is under MIT License. See the LICENSE file for the full license text.

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

8 years ago

0.1.0

8 years ago