import * as tslib_1 from "tslib";
import { Component } from '@angular/core';
import { Location } from '@angular/common';
import { Router, ActivatedRoute } from '@angular/router';
import { AuthService } from './../../config/auth.service';
let ForgotPage = class ForgotPage {
    constructor(router, route, location, authService) {
        this.router = router;
        this.route = route;
        this.location = location;
        this.authService = authService;
    }
    ngOnInit() { }
    goToPage(path, data = null) {
        this.router.navigateByUrl(path, { queryParams: data });
        document.body.scrollTop = document.documentElement.scrollTop = 0;
    }
    goBack() {
        this.location.back();
    }
};
ForgotPage = tslib_1.__decorate([
    Component({
        selector: 'app-forgot',
        templateUrl: './forgot.page.html',
        styleUrls: ['./forgot.page.scss']
    }),
    tslib_1.__metadata("design:paramtypes", [Router,
        ActivatedRoute,
        Location,
        AuthService])
], ForgotPage);
export { ForgotPage };
//# sourceMappingURL=forgot.page.js.map