Vuejs using father’s name tag on children

Asked

Viewed 91 times

0

Follow an example input:

<input name="TESTE" id="TESTE" placeholder="TESTE">

There’s a way I can do something like this so I don’t repeat the same name over and over again?
Like this below:

<div name="TESTE">
    <input :name="parent.name" :id="parent.name" :placeholder="parent.name">
</div>

I don’t want to use the data from Vue, nor Components, nor anything... Is there any way to do this using the simple and pure HTML as the example above?

Thank you!!!

  • I think that if you don’t use these things in Vue you might as well not use Vue. What would be indicated here would be to define this in the function data of the component

  • You’ll have to define in data even.

  • Okay then, thank you!! =)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.