Skip to content

Commit

Permalink
demo(rx-stateful): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelgo committed Apr 2, 2024
1 parent 4593991 commit 5b32496
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {Component, inject} from '@angular/core';
import {CommonModule} from '@angular/common';
import {HttpClient} from '@angular/common/http';
import {provideRxStatefulClient, RxStatefulClient, withConfig,} from '@angular-kit/rx-stateful';
import {delay, map, scan, Subject, switchMap} from 'rxjs';

import {delay, map, scan, Subject, switchMap, tap} from 'rxjs';
import {ActivatedRoute} from '@angular/router';
import {provideRxStatefulClient, RxStatefulClient, withConfig} from "@angular-kit/rx-stateful/experimental";

@Component({
selector: 'angular-kit-demo-rx-stateful',
Expand Down Expand Up @@ -62,6 +63,7 @@ export class DemoRxStatefulComponent {
});
state$ = this.instance;
stateAccumulated$ = this.state$.pipe(
tap(console.log),
scan((acc, value, index) => {
// @ts-ignore
acc.push({ index, value });
Expand Down

0 comments on commit 5b32496

Please sign in to comment.