egg-msg-flash-jklen

1.0.0 • Public • Published

egg-msg-flash

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-msg-flash --save

Usage

ctx.flash = {
  type: 'success',
  message: {
    some: 'one'
  }
}

// or

ctx.flash_success({ some: 'one' })

ctx.flash_error()
ctx.flash_info()
ctx.flash_warning()

ctx.request.flash(type, message)

// get flash by
ctx.flash

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-msg-flash-jklen

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.56 kB

Total Files

7

Last publish

Collaborators

  • maxy612