Created
July 21, 2024 18:52
-
-
Save rakia/61b83a02126ff590bf13dcb6b55c8ab5 to your computer and use it in GitHub Desktop.
Angular: Logic to show real-time feedback to users when they type a name that already exists in the system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-ecs-fieldset', | |
templateUrl: './ecs-fieldset.component.html', | |
changeDetection: ChangeDetectionStrategy.OnPush, | |
}) | |
export class EcsFieldsetComponent { | |
formBuilder = inject(FormBuilder); | |
@Input() entity: EcsFieldset; | |
@Input() nameAlreadyExists: boolean | null = false; | |
@Output() checkIfNameExists = new EventEmitter<string>(); | |
@Output() cancelEdit = new EventEmitter<void>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment