import * as tslib_1 from "tslib";
import { Component } from '@angular/core';
import { Location } from '@angular/common';
import { Router, ActivatedRoute } from '@angular/router';
import { ServiceService } from './../../config/service.service';
let OrdercancelledPage = class OrdercancelledPage {
    constructor(router, route, location, service) {
        this.router = router;
        this.route = route;
        this.location = location;
        this.service = service;
        this.orderCancelled = new Date();
        this.relatedProd = {
            slidesPerView: 2
        };
        this.service.get('order').then(val => {
            this.data = val;
        });
    }
    ngOnInit() { }
    goToPage(path, data = null) {
        this.router.navigateByUrl(path, { queryParams: data });
        document.body.scrollTop = document.documentElement.scrollTop = 0;
    }
    goBack() {
        this.location.back();
    }
};
OrdercancelledPage = tslib_1.__decorate([
    Component({
        selector: 'app-ordercancelled',
        templateUrl: './ordercancelled.page.html',
        styleUrls: ['./ordercancelled.page.scss']
    }),
    tslib_1.__metadata("design:paramtypes", [Router,
        ActivatedRoute,
        Location,
        ServiceService])
], OrdercancelledPage);
export { OrdercancelledPage };
//# sourceMappingURL=ordercancelled.page.js.map