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