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