import { InjectionToken } from "@angular/core" ; export interface IAnalyticsService { logPageView ( path , title ) : void ; logButtonClick ( buttonID ) : void ; } export const ANALYTICS_SERVICE = new InjectionToken < IAnalyticsService > ( "Analytics service" ) ; export const ANALYTICS_CONFIG = new InjectionToken < any > ( "Analytics services config" ) ;