import { Component } from '@angular/core' ; @ Component ( { templateUrl : 'root-page.html' } ) export class RootPage { reload ( ) { window . location . reload ( ) ; } } document . addEventListener ( 'click' , ( ev ) => { console . log ( `CLICK, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; } ) ; document . addEventListener ( 'touchstart' , ( ev ) => { console . log ( `TOUCH START, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; } ) ; document . addEventListener ( 'touchend' , ( ev ) => { console . log ( `TOUCH END, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; } ) ; document . addEventListener ( 'focusin' , ( ev ) => { console . log ( `CLICK, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; console . log ( `FOCUS IN, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; } ) ; document . addEventListener ( 'focusout' , ( ev ) => { console . log ( `CLICK, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; console . log ( `FOCUS OUT, ${ ev . target . localName }.${ ev . target . className }, time: ${ Date . now ( ) }` ) ; } ) ;