Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to customise the error message color

$
0
0

@shmu80 wrote:

I have a code as below, and I would like to customize the error message color if the input is empty, but I have no idea how to do it.
Can anybody advise?

  <form [ngFormModel]="loginForm">
    <ion-input type="email" placeholder="Email" ngControl="email">
    </ion-input>
    <div *ngIf="loginForm.controls.email.hasError('required') && loginForm.controls.email.touched">* Email is required!</div>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>