import { Component , OnInit } from '@angular/core' ; import { ApplicationService } from '@core/services/application.service' ; import { StatsModel } from '@shared/models/stats.model' ; /**
 * Application stats component on dashboard
 */ @ Component ( { selector : 'dashboard-stats' , templateUrl : './stats.component.html' , styleUrls : [ './stats.component.scss' ] , } ) export class StatsComponent implements OnInit { public stats : StatsModel ; param applicationService constructor ( private applicationService ) { } /**
     * Life cycle init method
     */ ngOnInit ( ) { this . applicationService . getApplicationStats ( ) . subscribe ( ( stats ) => this . stats = stats ) ; } }