import { Component, OnInit } from "@angular/core";
import { RouterExtensions } from "nativescript-angular/router"

@Component({
    selector: "Home",
    moduleId: module.id,
    templateUrl: "./home.component.html"
})
export class HomeComponent implements OnInit {
    constructor(private router:RouterExtensions) {
        /* ***********************************************************
        * Use the constructor to inject services.
        *************************************************************/
    }

    ngOnInit(): void {
        /* ***********************************************************
        * Use the "ngOnInit" handler to initialize data for the view.
        *************************************************************/
    }

    onTap(){
        this.router.navigate(["tabs/secondpage"], { clearHistory: false });
    }
}
