# j-Template

> j-Template: when the model is null or undefined then the template will be hidden

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 293a93cbf60aecb105c2e06e693e718518939bbee158fc63c76f85f4d389a7f0
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

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

```html 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>
```
