Initial commit for the Angular part. We are nowhere yet.
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<img [src]="data" (click)="close()">
|
||||
20
bookie/src/app/shared/image-dialog/image-dialog.component.ts
Normal file
20
bookie/src/app/shared/image-dialog/image-dialog.component.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import {Component, Inject} from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
|
||||
@Component({
|
||||
selector: 'app-image-dialog',
|
||||
templateUrl: './image-dialog.component.html',
|
||||
styleUrls: ['./image-dialog.component.css']
|
||||
})
|
||||
export class ImageDialogComponent {
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ImageDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||
}
|
||||
|
||||
close(): void {
|
||||
this.dialogRef.close();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user