wu

Reactive, functional and declarative framework for webapps

View the Project on GitHub migueldelmazo/wu

Wu framework: public methods

wu.create()

This method allows you to create items of Wu to be used by other items of Wu or by third-party libraries.

Arguments:

Example of use:

wu.create('ensurer', 'userLogin', {
  onChange: 'app.ready',
  args: ['user.email', 'user.password'],
  run: (userEmail, userPassword) => {
    return {
      email: userEmail,
      password: userPassword
    }
  },
  update: 'user.login.data'
})

wu.start()

Example of use:

wu.start()

wu.getter()

Allows to execute getters previously defined with wu.create(...). It is recommended to visit the getter documentation.

Example of use:

wu.getter('shopGetOrders', { status: 'sent' })

wu.setter()

Allows to execute setters previously defined with wu.create(...). It is recommended to visit the setter documentation.

Example of use:

wu.setter('paypalInitPayment', 100, '€')