You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
587 B
TypeScript
26 lines
587 B
TypeScript
2 years ago
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||
|
import { Subject } from 'rxjs';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'rtl-peer-swaps-out',
|
||
|
templateUrl: './swaps-out.component.html',
|
||
|
styleUrls: ['./swaps-out.component.scss'],
|
||
|
})
|
||
|
export class PeerswapsOutComponent implements OnInit, OnDestroy {
|
||
|
|
||
|
private unSubs: Array<Subject<void>> = [new Subject(), new Subject(), new Subject(), new Subject()];
|
||
|
|
||
|
constructor() {}
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
|
||
|
ngOnDestroy() {
|
||
|
this.unSubs.forEach((completeSub) => {
|
||
|
completeSub.next(<any>null);
|
||
|
completeSub.complete();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|