Making login function with string validation with VueJS
Here is my code: Link
Problem occurs in this follow,
both input keep with empty and click
Loginbuttonerror msg
Enter your usernameandEnter your passwordappearenter something in one of these input
ex) entering xxxx in
passwordarea- click
Loginbutton
Problem happens
- value of
passwordinput area disappears
I'd like to keep value in input box every time Login button clicked till both input value are correct.
How can I fix it?
Form validation function are written in Login.vue