Vanilla Custom Element repeater for <option>, <li>, <td>
I'm currently trying to implement a repeater WebComponent to allow the company to easily create front-end without depending on any framework (decision took by architecture). Here's my current code: <ul> <company-repeat datas='[{"name": "NameValeur", "value": "valeurId"}, {"name": "NameObject", "value": "objectId"}]'> <li>${name}</option> </company-repeat> </ul> <select name="" id=""> <company-repeat datas='[{"name": "NameValeur", "value": "valeurId"}, {"name": "NameObject", "value": "objectId"}]'> <option value="${value}">${name}</option> </company-repeat> </select> The list is rightly working