regex rule for email validation is not working in vuejs
<div class="input-wrapper">
<div class="email-icon"></div>
<input type="email" v-model.trim="$v.email.$model"
v-validate="'required'"
:class="{ 'is-invalid': validationStatus($v.email) }"
name="email" class=" input-section"
placeholder="Enter your company email ID"
:maxlength="maxemail"
v-on:keypress="validEmail($event)"
id='email' v-model='email' />
<div v-if="!$v.email.required" class="invalid-feedback">
The email field is required.</div>
<div v-if="!$v.email.maxLength" class="invalid-feedback-register">
30 characters only {{ $v.user.password.$params.maxLength.min }} </div>
</div>
I tried checking with regex rule for email validation is not working in vuejs but unable to solve the issue.
I want email to mandatory to check domain name, example:- abc@gmail.com, tried taking one keypress event where i am unable to passs regex as given in the link