import { Component } from "@angular/core" ; import { SelectedIndexChangedEventData } from "@nativescript/core" ; @ Component ( { moduleId : module . id , templateUrl : "./usage.component.html" } ) export class BasicTabViewComponent { onSelectedIndexchanged ( args ) { let newIndex = args . newIndex ; } }