0.4.2 • Published 5 years ago

@mixspa/app v0.4.2

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

mixspa-app

mixspa-app is used to define a app that can be load in another spa.

Current Status:

NPM Version NPM Downloads Build Status

NPM

How to use?

According the following to define a app. The name & render must exist.

import MixspaApp from '@mixspa/app';

MixspaApp.define({
  tag: 'app-demo', /* This name will be used for tag name */
  init: function(element) {
    /* will be call when custom element has been created */
  },
  render: function(element) {
    let attrName = element.getAttribute('data-name'); //
    /* will be call after custom element has been rendered */
  },
  unmount: function(element) {
    /* will be call when custom element has been removed */
  },
  update: function(element) {
    /* will be call when attribute has been changed */
  }
});

The MixspaApp will create a custom element for use. About more details & the api of parameter element please reference here: CustomElement

License

mixspa-app is released under the MIT license.

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago