Home > OS >  value attribute in hbs not showing string after space
value attribute in hbs not showing string after space

Time:10-29

<input type="text"  id="exampleInputEmail2"
                                     name="productName" value={{product.productName}} >

Inside my product.productName = Smart Phones, but it only shows 'Smart' inside the input field

How to show may whole string in my input field in HBS

CodePudding user response:

please provide quotes for the value . I think this will help you to figure out the error

eg :value="{{product.productName}}"

  • Related