import { Component } from "@angular/core" ; import { EventData , TextView } from "@nativescript/core" ; @ Component ( { moduleId : module . id , templateUrl : "./usage.component.html" } ) export class UsageComponent { tvtext = "" ; onTextChange ( args ) { const tv = args . object as TextView ; console . log ( tv . text ) ; } }