@amirsavand/ngx-common - v5.5.0
    Preparing search index...

    Class DetailBaseService<T>Abstract

    Used for storing an object PK and data to let child components to subscribe, use, and change them.

    Main parent component must load the PK from query params and set the PK. Load the data and set the data.

    Type Parameters

    • T extends { id: unknown }
    Index
    data: BehaviorSubject<T | null> = ...

    Current object data subject.

    pk: BehaviorSubject<T["id"] | null> = ...

    Current object PK subject.

    • Clear out all subjects.

      Returns void