How to use @datorama/akita-ng-entity-service - 3 common examples

To help you get started, we’ve selected a few @datorama/akita-ng-entity-service examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github datorama / akita / angular / playground / src / app / posts / posts.component.ts View on Github external
ngOnInit() {
    this.notifier.action$
      .pipe(
        ofType('success'),
        filterMethod('DELETE'),
        untilDestroyed(this)
      )
      .subscribe(v => console.log(v));

    this.postsService
      .get({
        mapResponseFn: res => {
          return res;
        }
      })
      .subscribe();
    this.loaders.deleteEntity(3);
  }
github datorama / akita / angular / playground / src / app / posts / posts.component.ts View on Github external
ngOnInit() {
    this.notifier.action$
      .pipe(
        ofType('success'),
        filterMethod('DELETE'),
        untilDestroyed(this)
      )
      .subscribe(v => console.log(v));

    this.postsService
      .get({
        mapResponseFn: res => {
          return res;
        }
      })
      .subscribe();
    this.loaders.deleteEntity(3);
  }
github datorama / akita / angular / playground / src / app / app.module.ts View on Github external
useFactory: function() {
        return {
          baseUrl: 'https://jsonplaceholder.typicode.com',
          httpMethods: {
            PUT: HttpMethod.PATCH
          }
        } as NgEntityServiceGlobalConfig;
      },
      deps: []

@datorama/akita-ng-entity-service

Akita entity service

Apache-2.0
Latest version published 1 year ago

Package Health Score

72 / 100
Full package analysis