j-Template
- when the model is
nullorundefinedthen the template will be hidden
Configuration:
properties {String}watch only specific properties in the string e.g.name,email(optional)
Use it with <ui-component name="template">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="template" path="somemodel">
<script type="text/html">
<table class="table">
<tr>
<td>Name</td>
<td>{{ name }}</td>
</tr>
<tr>
<td>Version</td>
<td>{{ version }}</td>
</tr>
</table>
</script>
</ui-component>
<script>
var somemodel = { name: 'jComponent', version: 'v2.1.3' };
</script>