File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
projects/mantic-ui/src/lib/base Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,18 @@ import { takeUntil } from 'rxjs/operators';
55@Injectable ( )
66export abstract class Destroyable implements OnDestroy {
77 private readonly destroySubject = new Subject < void > ( ) ;
8- protected readonly destroy = this . destroySubject . asObservable ( ) ;
8+
9+ /**
10+ * An observable that emits when the component is destroyed.
11+ */
12+ public readonly destroy = this . destroySubject . asObservable ( ) ;
913
1014 /**
1115 * Pipe this method to a subject to take values until the component is destroyed.
1216 * Example: `observable.pipe(this.takeUntilDestroy()).subscribe(...);`
1317 * Equals to `observable.pipe(takeUntil(this.destroy)).subscribe(...);`.
1418 */
15- protected takeUntilDestroy < T > ( ) : MonoTypeOperatorFunction < T > {
19+ public takeUntilDestroy < T > ( ) : MonoTypeOperatorFunction < T > {
1620 return takeUntil ( this . destroy ) ;
1721 }
1822
You can’t perform that action at this time.
0 commit comments