Skip to content

Instantly share code, notes, and snippets.

@rakia
Last active July 21, 2024 19:21
Show Gist options
  • Save rakia/975baa95141c0c6570ec4369f66a8296 to your computer and use it in GitHub Desktop.
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
@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