Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

actionFactory

Generic types:T

This creates all the Actions for a given source. You would only need to call this if you needed to directly dispatch one of these actions from your own code. They are used internally and are only exposed for convenience.

See Also

Presentation

function actionFactory(feature: string, entity: string): ActionGroup<T>;

Returns

ActionGroup<T> -

The ActionGroup for the source provided

Parameters

NameTypeDescription
feature
string

the feature this action is for

entity
string

the entity within the feature this action is for