From cb4f4ed58cc1fffb7d4a1fc79286d7ab13c0c7ae Mon Sep 17 00:00:00 2001 From: Pragati Sanepara Date: Fri, 23 Sep 2022 15:34:33 +0530 Subject: [PATCH] added name, isRequired --- .../components/input-field/input-field.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/shared/components/input-field/input-field.component.ts b/src/app/shared/components/input-field/input-field.component.ts index bc3227a..9375176 100644 --- a/src/app/shared/components/input-field/input-field.component.ts +++ b/src/app/shared/components/input-field/input-field.component.ts @@ -8,10 +8,12 @@ import { SVGs } from '../../constants/svgs'; }) export class InputFieldComponent implements OnInit { @Input() error = false; - @Input() class : any; - @Input() icon : string = SVGs.info; + @Input() name!: string; + @Input() class: any; + @Input() isRequired!: boolean; + @Input() icon: string = SVGs.info; public svgs; - + constructor() { this.svgs = SVGs; }