gramener / uifactory

Simple HTML components
MIT License
7 stars 0 forks source link

WIP: Document usage examples #4

Open pratapvardhan opened 3 years ago

pratapvardhan commented 3 years ago
```javascript
$('elsewhere').html('<main-element" value="update world"><main-element>')
sanand0 commented 3 years ago

1954148: Documents dynamic creation of elements

pratapvardhan commented 3 years ago

Added: Would like to set data via fetch / Promises inside the template. For example, <bs-card url="./data?"><bs-card>. I should be able to set data variable in the script tag after promise is completed? Let me know if this isn't clear.