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 bb3b8ab commit c5ed8e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

</mat-radio-group>

<file-upload requiredFileType="image/png"></file-upload>

<mat-form-field>

<input type="number" matInput placeholder="Price" formControlName="price">
Expand Down
2 changes: 2 additions & 0 deletions src/app/file-upload/file-upload.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


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 @@ -12,5 +12,7 @@ import {noop, of} from 'rxjs';
})
export class FileUploadComponent {

@Input()
requiredFileType:string;

}

0 comments on commit c5ed8e2

Please sign in to comment.