import { Component } from "@angular/core" ; import { GridLayout } from "@nativescript/core" ; import { GestureEventData } from "@nativescript/core" ; @ Component ( { moduleId : module . id , templateUrl : "./tap.component.html" } ) export class TapExampleComponent { onTap ( args ) { console . log ( "Tap!" ) ; console . log ( "Object that triggered the event: " + args . object ) ; console . log ( "View that triggered the event: " + args . view ) ; console . log ( "Event name: " + args . eventName ) ; let grid = < GridLayout > args . object ; grid . rotate = 0 ; grid . animate ( { rotate : 360 , duration : 2000 } ) ; } }