Skip to content
Hai Phan edited this page Jul 31, 2015 · 8 revisions

Define a variable whose value is that of another expression.

<div bind-repeater-i="#todos.length"
	bind-var-item="#todos[#i]"
	bind-var-status="#todos[#i].done ? 'completed' : 'active'">
	{{#item.text}} is {{#status}}
</div>
Clone this wiki locally