mirror of
https://github.com/mempool/mempool.git
synced 2025-03-01 01:00:00 +01:00
20 lines
556 B
TypeScript
20 lines
556 B
TypeScript
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
import { WebsocketService } from 'src/app/services/websocket.service';
|
|
|
|
@Component({
|
|
selector: 'app-lightning-wrapper',
|
|
templateUrl: './lightning-wrapper.component.html',
|
|
styleUrls: ['./lightning-wrapper.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class LightningWrapperComponent implements OnInit {
|
|
|
|
constructor(
|
|
private websocketService: WebsocketService,
|
|
) { }
|
|
|
|
ngOnInit() {
|
|
this.websocketService.want(['blocks']);
|
|
}
|
|
|
|
}
|