no-stock.component.ts
525 Bytes
import { Component, OnInit } from '@angular/core';
import { BsModalRef } from 'ngx-bootstrap/modal';
import { Subject } from 'rxjs';
@Component({
selector: 'app-no-stock',
templateUrl: './no-stock.component.html',
styleUrls: ['./no-stock.component.scss']
})
export class NoStockComponent implements OnInit {
onClose: Subject<any>;
constructor(
private modalRef: BsModalRef,
) {
this.onClose = new Subject();
}
ngOnInit() {
}
close() {
this.onClose.next();
this.modalRef.hide();
}
}