/*------------------------------------------------------------------------------ About : Any component be it routable or not which needs to be tracked for analytics must extent this class. All actions performed on sub components / HTML elements in this kind of component will be logged under the trackable screen name. Created on : Sat Nov 03 2018 Author : Sid Copyright (c) 2018 Obopay. All rights reserved. ------------------------------------------------------------------------------*/ import { Directive } from '@angular/core' import { RunContextBrowser } from '../../rc-browser' @Directive() export abstract class TrackableScreen { abstract getRouteName(): string constructor(protected rc : RunContextBrowser) { } onApiComplete(success: boolean) { } ngOnDestroy() { // if (this.rc.userKeyVal.clientId && this.isUserVisited()) { // const key = Object.keys(ComponentRoute) // .find(key => ComponentRoute[key] === this.getRouteName()) // this.rc.userKeyVal.setScreenVisited(key) // } } }