Crud Collection
By extending your State with CrudCollectionState and adding the @CrudCollection decorator, you are all set to communicate with your api via the provided defaults /api/{collection name}
.
posts.state.ts
Global customisation
You can fully customise the baseUrl, endpoint and other relevant things via the @CrudCollection decorator's options, or globally for all collections by providing CRUD_COLLECTION_OPTIONS_TOKEN anywhere in your module.
Overriding defaults for every @CrudCollection globally:
state.module.ts
Last updated