import { Component } from "@angular/core" ; import { ActivityIndicator , EventData } from "@nativescript/core" ; @ Component ( { moduleId : module . id , templateUrl : "./usage.component.html" } ) export class ActivityIndicatorUsageComponent { isBusy : boolean = true ; onBusyChanged ( args ) { let indicator = < ActivityIndicator > args . object ; console . log ( "indicator.busy changed to: " + indicator . busy ) ; } }