Last active
July 21, 2024 19:21
-
-
Save rakia/975baa95141c0c6570ec4369f66a8296 to your computer and use it in GitHub Desktop.
Angular: Simplified 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-field', | |
templateUrl: './ecs-field.component.html', | |
changeDetection: ChangeDetectionStrategy.OnPush, | |
}) | |
export class EcsFieldComponent implements OnInit, OnChanges { | |
private storeService = inject(EcsFieldsStoreService); | |
nameAlreadyExists: boolean = false; | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment