@amirsavand/ngx-common - v5.1.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

    Constructors

    Properties

    Methods

    Constructors

    Properties

    data: BehaviorSubject<null | T> = ...

    Current object data subject.

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

    Current object PK subject.

    Methods

    • Clear out all subjects.

      Returns void