import { AfterViewInit , Component , Inject } from '@angular/core' ; import { Router } from '@angular/router' ; import { IAnalyticsService , ANALYTICS_SERVICE } from 'services/analytics' ; @ Component ( { selector : 'app-page-technology' , templateUrl : './technology.html' , styleUrls : [ './technology.scss' ] } ) export class TechnologyPageComponent implements AfterViewInit { constructor ( private router , @ Inject ( ANALYTICS_SERVICE ) private analyticsService ) { } ngAfterViewInit ( ) { this . analyticsService . logPageView ( this . router . url , 'Technology' ) ; } onCloseClick ( ev ) { ev . stopPropagation ( ) ; history . back ( ) ; } }