import { ChangeDetectionStrategy , ChangeDetectorRef , Component , NgZone } from '@angular/core' ; import { ActivatedRoute } from '@angular/router' ; import { Store } from '@ngrx/store' ; import { Utils } from 'shared-library/core/services' ; import { AppState } from '../../../store' ; import { UserActions , TagActions , TopicActions } from 'shared-library/core/store/actions' ; import { Leaderboard } from './leaderboard' ; @ Component ( { selector : 'leaderboard' , templateUrl : './leaderboard.component.html' , styleUrls : [ './leaderboard.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class LeaderboardComponent extends Leaderboard { constructor ( protected store , protected userActions , protected utils , protected route , protected cd , protected ngZone , protected tag , protected topic ) { super ( store , userActions , utils , route , cd , ngZone , tag , topic ) ; } trackByFn ( index , item ) { return index ; } }