source: Farmatiko/ClientApp/src/app/dialogs/edit-pharmacy-head-dialog/edit-pharmacy-head-dialog.component.ts@ ee137aa

Last change on this file since ee137aa was ee137aa, checked in by Mile Jankuloski <mile.jankuloski@…>, 3 years ago

Added DataService and dialogs, all bindings needed implemented

  • Property mode set to 100644
File size: 726 bytes
Line 
1import { Component, OnInit, Inject } from '@angular/core';
2import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
3import { IPharmacyHead } from '../../shared/interfaces';
4
5@Component({
6 selector: 'app-edit-pharmacy-head-dialog',
7 templateUrl: './edit-pharmacy-head-dialog.component.html',
8 styleUrls: ['./edit-pharmacy-head-dialog.component.css']
9})
10export class EditPharmacyHeadDialogComponent implements OnInit {
11 head: IPharmacyHead;
12
13 constructor(private dialogRef: MatDialogRef<EditPharmacyHeadDialogComponent>, @Inject(MAT_DIALOG_DATA) data) {
14 this.head = data;
15 }
16
17 ngOnInit(): void {
18 }
19
20 save() {
21 this.dialogRef.close(this.head);
22 }
23
24 close() {
25 this.dialogRef.close();
26 }
27
28}
Note: See TracBrowser for help on using the repository browser.