src/app/shared/components/name-input/name-input.component.ts
Component for inputting the researcher's name
changeDetection | ChangeDetectionStrategy.OnPush |
selector | ccf-name-input |
styleUrls | ./name-input.component.scss |
templateUrl | ./name-input.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
constructor(ga: GoogleAnalyticsService)
|
||||||||
Creates an instance of name input component.
Parameters :
|
name | |
Type : UserName
|
|
Current user name |
nameChange | |
Type : EventEmitter
|
|
Emits a UserName object |
class |
Type : "ccf-name-input"
|
Default value : 'ccf-name-input'
|
HTML class name |
updateName | ||||||||||||
updateName(input: Event, key: string)
|
||||||||||||
Updates username with a new entry and emits the UserName object
Parameters :
Returns :
void
|
Readonly clsName |
Type : string
|
Default value : 'ccf-name-input'
|
Decorators :
@HostBinding('class')
|
HTML class name |
firstNameValidator |
Default value : new UntypedFormControl('', [Validators.required])
|
Used to validate the first name input field. |
lastNameValidator |
Default value : new UntypedFormControl('', [Validators.required])
|
Used to validate the last name input field. |
middleNameValidator |
Default value : new UntypedFormControl('', [Validators.required])
|
Used to validate the middle name input field. |
name | ||||||
getname()
|
||||||
Current user name
Returns :
UserName
|
||||||
setname(value: UserName)
|
||||||
Parameters :
Returns :
void
|
./name-input.component.scss