I have this html code in which there are vue attributes

<input type="text" name="login" v-model="form.login" :class="{ action : form.login }"> 

I'm actually trying to call a model in yii2

 <?= $form->field($model, "login") ?> 

And how do I add vue attributes to it?

    1 answer 1

     <?= $form->field($model, "login")->input("text",["v-model" => "form.login"]) ?>