source: Farmatiko/ClientApp/src/app/dialogs/facility-dialog/facility-dialog.component.ts@ 1f4846d

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

Added DataService and dialogs, all bindings needed implemented

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