ForgeComponents
en

Components

j-Template

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • when the model is null or undefined then 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.

example.html
<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>