Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {Component, OnInit, ViewChild} from "@angular/core";
- import { Router } from "@angular/router";
- import { Location } from "@angular/common";
- import { NgForm } from "@angular/forms";
- @Component({
- selector: "app-banking-menu",
- templateUrl: "./banking-menu.component.html",
- styleUrls: ["./banking-menu.component.scss"]
- })
- export class BankingMenuComponent implements OnInit {
- @ViewChild(NgForm) timeForm;
- time: string;
- constructor(private router: Router, private _location: Location) {
- }
- ngOnInit() {}
- return() {
- this._location.back();
- }
- redirectCheckout() {
- this.router.navigate(["/configuracao/bandeiras"], {
- queryParams: { type: "checkout" }
- });
- }
- redirectDelivery() {
- this.router.navigate(["/configuracao/bandeiras"], {
- queryParams: { type: "delivery" }
- });
- }
- redirectRemoval() {
- this.router.navigate(["/configuracao/bandeiras"], {
- queryParams: { type: "removal" }
- });
- }
- }
Add Comment
Please, Sign In to add comment