Passed
Push — develop ( 098d47...e41a2d )
by Franck
01:00 queued 12s
created

DeleteProductModalComponent.cancelDelete   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import { Product } from './../../models/product';
2
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
3
@Component({
4
    selector: "app-delete-product-modal",
5
    templateUrl: "./delete-product-modal.component.html",
6
    styleUrls: ["./delete-product-modal.component.scss"]
7
})
8
export class DeleteProductModalComponent implements OnInit {
9
10
    @Input() product: Product;
11
    @Output() cancel = new EventEmitter();
12
    @Output() confirm = new EventEmitter();
13
14
    constructor() { }
15
16
    ngOnInit(): void { }
17
18
    cancelDelete(){
19
        this.cancel.emit();
20
    }
21
22
    confirmDelete(){
23
        this.confirm.emit();
24
    }
25
}
26