import * as tslib_1 from "tslib";
import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Location } from '@angular/common';
let ReviewPage = class ReviewPage {
    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();
    }
};
ReviewPage = tslib_1.__decorate([
    Component({
        selector: 'app-review',
        templateUrl: './review.page.html',
        styleUrls: ['./review.page.scss'],
    }),
    tslib_1.__metadata("design:paramtypes", [Router,
        ActivatedRoute,
        Location])
], ReviewPage);
export { ReviewPage };
//# sourceMappingURL=review.page.js.map