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