Skip to content

Commit ac215d5

Browse files
author
Your Name
committed
Angular Forms In Depth
1 parent c5ed8e2 commit ac215d5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11

2+
<input type="file" class="file-input">
23

4+
<div class="file-upload">
5+
6+
<mat-form-field>
7+
8+
<input matInput [disabled]="true" [value]="fileName">
9+
10+
</mat-form-field>
11+
12+
<button mat-mini-fab color="primary" class="upload-btn">
13+
<mat-icon>attach_file</mat-icon>
14+
15+
</button>
16+
17+
</div>

src/app/file-upload/file-upload.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ export class FileUploadComponent {
1515
@Input()
1616
requiredFileType:string;
1717

18+
fileName = '';
19+
1820
}

0 commit comments

Comments
 (0)