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

provideSmartFeatureEntities

This provides all the NgRX parts for a given feature and entity

Note: the generic parameters are implied so they are not documented here.

Usage:

providers: [
...
provideEntities('someFeature', entityDefinitions),
...
],

See Also

  • EntityDefinition

Presentation

function provideSmartFeatureEntities(
  featureName: string,
  entityDefinitions: SmartEntityDefinition<SmartNgRXRowBase>[],
): EnvironmentProviders;

Returns

EnvironmentProviders -

EnvironmentProviders that will get used to provide the NgRX reducer and effect for this slice.

Parameters

NameTypeDescription
featureName
string

This is the name you would use for forFeature()

entityDefinitions
SmartEntityDefinition<SmartNgRXRowBase>[]

An array of entity definitions.