Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 947 Bytes

action.md

File metadata and controls

14 lines (12 loc) · 947 Bytes

action hook

action(params, qs, data)

  • params {Object} - Serialized route parameters, /route/:_id => { _id: 'str' }
  • qs {Object} - Serialized query string, /route/?key=val => { key: 'val' }
  • data {Mix} - Value returned from .data() hook
  • Return: {void}

.action() hook is triggered right after page is navigated to route, or after (exact order, if any of those is defined):