Last change
on this file since d23bf72 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:
627 bytes
|
Rev | Line | |
---|
[ee137aa] | 1 | import { Component, OnInit, Inject } from '@angular/core';
|
---|
| 2 | import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
---|
| 3 | import { IPharmacy } from '../../shared/interfaces';
|
---|
| 4 |
|
---|
| 5 | @Component({
|
---|
| 6 | selector: 'app-pharmacy-dialog',
|
---|
| 7 | templateUrl: './pharmacy-dialog.component.html',
|
---|
| 8 | styleUrls: ['./pharmacy-dialog.component.css']
|
---|
| 9 | })
|
---|
| 10 | export class PharmacyDialogComponent implements OnInit {
|
---|
| 11 | pharmacy: IPharmacy;
|
---|
| 12 |
|
---|
| 13 | constructor(private dialogRef: MatDialogRef<PharmacyDialogComponent>, @Inject(MAT_DIALOG_DATA) data) {
|
---|
| 14 | this.pharmacy = 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.