import { Component } from '@angular/core' ; @ Component ( { templateUrl : 'root-page.html' } ) export class RootPage { testClick ( ev ) { console . log ( 'CLICK!' , ev . target . tagName , ev . target . textContent . trim ( ) ) ; } testClickOutsize ( ev ) { console . log ( 'CLICK OUTSIDE!' , ev . target . tagName , ev . target . textContent . trim ( ) ) ; } }