AngularJS Store
v3.0.0
v3.0.0
  • Introduction
  • Installation
  • Tutorials
    • Setup a store
    • Get the current state
    • Update the state
    • Get notified on state changes
    • Stop from receiving notifications
  • API Reference
    • NgStore
    • copy
    • dispatch
    • hook
Powered by GitBook
On this page
  1. API Reference

hook

Previousdispatch

Last updated 6 years ago

Was this helpful?

CtrlK

Was this helpful?

Listen to certain dispatched action.

@paramaters

Name

Type

Description

actionQuery

string string[] RegExp

Query that control the hook to only respond on certain dispatched actions. It can be a string for querying single action or it can be an array of string or RegExp to query multiple actions.

reducer(s)

function function[]

Function(s) that called after the dispatched action are passed to actionQuery test. Function should be look like: function (state, calls) {...}

@return

Type

Description

HookLink

HookLink instance, can be used for removing the hook from store.