Same value for attributes



  • I got a q-form with some q-tabs inside and inside the q-tab some q-inputs

    My question is: is it somehow avoidable to write 3 times i.e. the same attribute name?
    ( v-model = name = ref = “attributename” )

    so only to write it once per q-input (for v-model i.e.) and all other attributes (ref, name,…) got the same val

                 <q-input
                    v-model="domain"
                    name="domain"
                    ref="domain"
                    autofocus
                    :label="$t('domain.Label')"
                    :hint="$t('domain.hint')"
                    maxlength="50"
                    :rules="[val => !!val || $t('txtRequired')]"
                  />
                  <q-input
                    v-model="db_server"
                    name="db_server"
                    ref="db_server"
                    :label="$t('db_server.Label')"
                    :hint="$t('db_server.hint')"
                    maxlength="100"
                    :rules="[val => !!val || $t('txtRequired')]"
                  />
    
    

Log in to reply