I am working on my firs Vue project with ASP.NET Core. In this project, I have an input box and because I am using asp MVC validation. I am transferring error message from the server in the data-val-required attr.
Not I also using vuejs from clientside functionality and I want to validate the form in vuejs. Which is working fine but I want to reuse this same error message which available in data-val-required
so can anyone please tell the how to access value from custom attr in vuejs
<input type="email"
placeholder="[email protected]"
data-val="true"
data-val-required="The Email field is required."
id="Email"
name="Email"
class="form-control">
thanks