Topic: MDB angular input error message prompt

polis.gints pro asked 6 years ago


Would be nice to have posibility to add error message to Angular input, when it is touched and invalid. Like... Example</img>

  <div class="md-form">
    <input mdbActive type="text" formControlName="name" id="name" class="form-control">
    <label for="name">Clan name</label>
    <small *ngIf="clanForm.get('name').invalid && clanForm.get('name').touched" class="text-danger">Clan name should be given</small>
  </div>

input.ng-invalid.ng-touched {
  border-bottom-color: #ff0000;
  border-bottom: 1px solid #ff0000;
}


Edyta Dabrowska free answered 6 years ago


Thank you for your suggestion. We will consider this and maybe add it to next release.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags