@ngxs-labs/data
Advanced tools
Changelog
4.2.0 2021-03-26
entitiesArray
, entitiesArray$
to AbstractNgxsDataEntityCollectionsRepository
Changelog
4.0.0 2020-09-09
@ngxs/store@3.7.0
Immutable, Mutable, Any
interfaces to @angular-ru/common/typings
:import { Immutable, Mutable, Any } from '@angular-ru/common/typings';
createEntityCollections
to @angular-ru/common/entity
:import { createEntityCollections } from '@angular-ru/common/entity';
@StateRepository()
@State({
name: 'students',
defaults: createEntityCollections()
})
@Injectable()
class StudentEntitiesState extends NgxsDataEntityCollectionsRepository<StudentEntity, string> {
public selectId(entity: StudentEntity): string {
return `${entity.groupId}_${entity.batchId}`;
}
}
NgxsDataMutablePipe, NgxsDataUtilsModule
Changelog
3.0.6 2020-06-25
ng add @ngxs-labs/data