Search code examples
javascriptjqueryhtmlvue.jsqr-code

vue.js result pass to text input html


I'm use vue.js and function v-for for read qr-code

Example

<ul v-for="(scan,key) in scans" :key="key" > {{scan.content}} </ul> 

I'm must value inside {{scan.content}} example EmployeeID But I'm can't pass value to text input html.

<input type="text" value="{{scan.content}}">

Solution

  • try to <input type="text" :value="scan.content">; I think v-bind will work. v-bind