SHARE
TWEET

Untitled

a guest Jun 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // inside computed
  2. formErrors() {
  3.     return {
  4.     firstNameError: () => {
  5.        if(!this.editCustomer.firstName){
  6.         return this.errorMessages.blankError
  7.       }
  8.     },
  9.       lastNameError: () => {
  10.         if(!this.editCustomer.lastName){
  11.         return this.errorMessages.blankError
  12.       }
  13.     },
  14.       emailError:() => {
  15.         !this.editCustomer.email){
  16.         return this.errorMessages.blankError
  17.       }
  18.     }
  19.   },
  20.  
  21.  
  22.    <fg-input
  23.     v-model="editCustomer.firstName"
  24.     placeholder="First Name"
  25.     label="First Name"
  26.     name="firstName"
  27.     ///called here
  28.     :error="formErrors.firstNameError()"
  29.   ></fg-input>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top