Add skeleton loader in node per isp/country lists

This commit is contained in:
nymkappa
2022-09-06 11:01:46 +02:00
parent 9047cb5998
commit d536d63d69
4 changed files with 72 additions and 4 deletions

View File

@@ -15,11 +15,17 @@ export class NodesPerISP implements OnInit {
nodes$: Observable<any>;
isp: {name: string, id: number};
skeletonLines: number[] = [];
constructor(
private apiService: ApiService,
private seoService: SeoService,
private route: ActivatedRoute,
) { }
) {
for (let i = 0; i < 20; ++i) {
this.skeletonLines.push(i);
}
}
ngOnInit(): void {
this.nodes$ = this.apiService.getNodeForISP$(this.route.snapshot.params.isp)