Angular HAL Client - v1.0.0-dev.7
    Preparing search index...

    Function read

    • Returns an RxJS operator to read a Resource using an Accessor. It is equivalent to

      switchMap(accessor => of(undefined))
      

      if accessor is null or undefined and to

      switchMap(accessor => accessor.read(type))
      

      otherwise.

      Type Parameters

      Parameters

      • type: Type<T>

        the resource type

      Returns OperatorFunction<Accessor | null | undefined, T | undefined>

      a function that transforms the source Observable