license import { Component } from '@angular/core' ; import { UrlService } from '../../../@core/data/service/url.service' ; import { EvaAnalytics } from '../../services/analytics.service' ; import { EvaVersionService } from '../../services/version.service' ; @ Component ( { selector : 'eva-header' , styleUrls : [ './header.component.scss' ] , templateUrl : './header.component.html' , } ) export class HeaderComponent { zipUrl : string ; constructor ( private urlService , private analytics , private versionService ) { this . zipUrl = this . urlService . getZippedIconsUrl ( ) ; } clickOnDownloadPack ( ) { const version = this . versionService . getEvoVersion ( ) ; this . analytics . trackEvent ( 'downloadPack' , `download pack version: ${ version }` ) ; } }