Skip to content

Instantly share code, notes, and snippets.

@rakia
Created July 21, 2024 18:36
Show Gist options
  • Save rakia/71ca6207f416d6d98320f554b83f3217 to your computer and use it in GitHub Desktop.
Save rakia/71ca6207f416d6d98320f554b83f3217 to your computer and use it in GitHub Desktop.
Show real-time feedback to users when they type a name that already exists in the system
<!-- Show warning: Name already exists -->
<ng-container *ngIf="nameAlreadyExists">
<div class="mb-4 text-red-600">
{{ "WARNING.DUPLICATE_NAME" | transloco }}
</div>
</ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment