Returns an array of newly built TransitionHook objects.
Returns an array of newly built TransitionHook objects.
hookType
which matched the transition's TreeChanges.Node[]
) to use as the TransitionHook context(s)the name of the hook registration function, e.g., 'onEnter', 'onFinish'.
selects which Nodes from the IMatchingNodes object to create hooks for.
a function which compares two HookTuple and returns <1, 0, or >1
a function which accepts a Node and returns additional locals to provide to the hook as injectables
any specific Transition Hook Options
Finds all IEventHooks from:
Finds all IEventHooks from:
which matched:
an array of matched IEventHooks
Generated using TypeDoc
This class returns applicable TransitionHooks for a specific Transition instance.
Hooks (IEventHook) may be registered globally, e.g., $transitions.onEnter(...), or locally, e.g. myTransition.onEnter(...). The HookBuilder finds matching IEventHooks (where the match criteria is determined by the type of hook)
The HookBuilder also converts IEventHooks objects to TransitionHook objects, which are used to run a Transition.
The HookBuilder constructor is given the $transitions service and a Transition instance. Thus, a HookBuilder instance may only be used for one specific Transition object. (side note: the _treeChanges accessor is private in the Transition class, so we must also provide the Transition's _treeChanges)