Introduction

CRUD services in Angular with effortless aborting, caching and observing.

Installation

npm install ngx-crud

Setup

Import the CrudModule and HttpClientModule inside your AppModule:

import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { CrudModule } from 'ngx-crud';

@NgModule(
{
	imports:
	[
		CrudModule
	],
	providers:
	[
		provideHttpClient(withInterceptorsFromDi())
	]
})
export class AppModule
{
}

Usage

Extend the ExampleService from the CrudService:

Use the HTTP operations as needed:

Playground

Visit the playground to see aborting, caching and observing in action.

Last updated