Skip to content

Commit

Permalink
Angular Forms In Depth
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 15, 2020
1 parent c5ed8e2 commit ac215d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/app/file-upload/file-upload.component.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@

<input type="file" class="file-input">

<div class="file-upload">

<mat-form-field>

<input matInput [disabled]="true" [value]="fileName">

</mat-form-field>

<button mat-mini-fab color="primary" class="upload-btn">
<mat-icon>attach_file</mat-icon>

</button>

</div>
2 changes: 2 additions & 0 deletions src/app/file-upload/file-upload.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ export class FileUploadComponent {
@Input()
requiredFileType:string;

fileName = '';

}

0 comments on commit ac215d5

Please sign in to comment.