import { Component } from "@angular/core" ; import { RouterExtensions } from "@nativescript/angular" ; @ Component ( { moduleId : module . id , templateUrl : "./usage.component.html" } ) export class ActionBarUsageComponent { constructor ( private routerExtensions ) { } goBack ( ) { this . routerExtensions . backToPreviousPage ( ) ; } openSettings ( ) { } }