Skip to content

Commit c5ed8e2

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

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/app/create-course/create-course-step-2/create-course-step-2.component.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
</mat-radio-group>
1111

12+
<file-upload requiredFileType="image/png"></file-upload>
13+
1214
<mat-form-field>
1315

1416
<input type="number" matInput placeholder="Price" formControlName="price">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+

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

+2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ import {noop, of} from 'rxjs';
1212
})
1313
export class FileUploadComponent {
1414

15+
@Input()
16+
requiredFileType:string;
1517

1618
}

0 commit comments

Comments
 (0)