Skip to content
guankaishe edited this page May 20, 2015 · 9 revisions

if

Where insert sub-elements into parent DOM Tree or remove. Example

<z-if is="{expression}">
    <!-- sub element -->
    <!-- sub element -->
</z-if>

repeat

Repeat a template element based on an Array on the viewModel.

Example

<ul>
    <z-repeat items="{users}">
        <li>
            {{name}} {{email}}
        </li>
    </z-repeat>
</ul>

template

{expression}

Binding data to text-content at that position. The text result of the express will be escaped.

{- expression}

Binding data to html-content at that position. Th result of the express will not be escaped and render to actual element.

Clone this wiki locally