Skip to content

Commit

Permalink
add comments for popover ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Pop John committed Oct 24, 2024
1 parent a03dc8e commit 70bed4d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@ import { PopoverClose } from './models/interfaces/popover-config.interface';
export class PopoverRef {
private afterClosedSubject = new Subject<any>();

/**
* Subject used to emit data from the popover to the outside while the popover is still open.
* This allows for real-time communication between the popover's internal components and external listeners.
*/
private dataSubject = new Subject<any>();


/**
* Observable that external components can subscribe to in order to receive data emitted by the popover.
* It exposes the `dataSubject` as a read-only stream.
*/
public data$: Observable<any> = this.dataSubject.asObservable();

constructor(private overlayRef: OverlayRef) {}
Expand Down

0 comments on commit 70bed4d

Please sign in to comment.