notice

agnusdei·2024년 5월 28일
 _subject = new Subject<boolean | void>();
  clientExamples = toSignal(
    this._subject.pipe(
      switchMap((bool) => {
        if (bool) {
          return of([]);
        }
        return this.clientExampleService.clientExampleControllerFindAll().pipe(
          defaultIfEmpty([]),
          tap((res) => {
            if (res && res.length > 0)
              this.form.patchValue({ count: res[0].count });
          })
        );
      })
    )
  );
profile
DevSecOps, Pentest, Cloud(OpenStack), Develop, Data Engineering, AI-Agent

0개의 댓글