mirror of
https://github.com/mempool/mempool.git
synced 2025-03-30 04:32:06 +02:00
24 lines
668 B
TypeScript
24 lines
668 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
import { ApiService } from '@app/services/api.service';
|
|
import { StateService } from '@app/services/state.service';
|
|
|
|
@Component({
|
|
selector: 'app-assets-featured',
|
|
templateUrl: './assets-featured.component.html',
|
|
styleUrls: ['./assets-featured.component.scss']
|
|
})
|
|
export class AssetsFeaturedComponent implements OnInit {
|
|
featuredAssets$: Observable<any>;
|
|
|
|
constructor(
|
|
private apiService: ApiService,
|
|
private stateService: StateService,
|
|
) { }
|
|
|
|
ngOnInit(): void {
|
|
this.featuredAssets$ = this.apiService.listFeaturedAssets$(this.stateService.network);
|
|
}
|
|
|
|
}
|