import { Component } from '@angular/core' ; @ Component ( { templateUrl : 'root-page.html' } ) export class RootPage { url : string ; input1 : string = 'Text 1' ; onEvent ( event ) { console . log ( 'Did Event:' , event . type ) ; } }