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

registerEntity

Internal function used to register attributes the entity will need later on.

See Also

Presentation

function registerEntity(
  feature: string,
  entity: string,
  attributes: EntityAttributes,
): EntityAttributes;

Returns

EntityAttributes -

the attributes associated with the entity

Parameters

NameTypeDescription
feature
string

the feature we used when we registered the entity in the providers

entity
string

the fieldName we used when we registered the entity in the providers

attributes
EntityAttributes

the EntityAttributes we want to be able to get to later.