This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ul href="#!" repeat.for="user of users"> | |
<li> | |
<input value.bind='user.firstName' /> <input value.bind='user.lastName' /> | |
</li> | |
</ul> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from='thingy'></require> | |
<h1>${message}</h1> | |
<ul> | |
<li repeat.for="option of allOptions"> | |
<input type="checkbox" checked.bind="selectedOptions" matcher.bind="matcher" model.bind="option"> | |
${option.text} | |
</li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>${message}</h1> | |
<input type='text' value.bind='myProperty' /> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>${message}</h1> | |
<pre>data:[${data}]</pre> | |
<ul> | |
<!-- | |
<li repeat.for="user of users"> | |
${user.login} | |
</li> | |
--> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<p>Hit edit and you'll see two items added to the form instead of one.</p> | |
<div if.bind="!editing"> | |
<h2>${items.length} items!</h2> | |
<ul> | |
<li repeat.for="item of items"> | |
${item.name} | |
</li> | |
</ul> | |
<button click.delegate="toggleEditing()">Edit</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>${message}</h1> | |
<button click.delegate="go()">go to second</button> | |
<div> | |
[[DEFAULT: <router-view name="primary"></router-view>]] | |
</div> | |
<div> | |
[[SECONDARY:<router-view name="secondary"></router-view>]] | |
</div> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section> | |
<h2>${heading}</h2> | |
Caja | |
<select value.bind="cobranza.CajaId"> | |
<option value="0">Seleccionar Caja</option> | |
<option repeat.for="caja of cajas" model.bind="caja.CajaId">${caja.Nombre}</option> | |
</select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<select md-select="label: select a value" value.two-way="selectedValue"> | |
<option value="" disabled selected>select an item</option> | |
<option value="item1">item 1</option> | |
<option value="item2">item 2</option> | |
<option value="item3">item 3</option> | |
<option value="item4">item 4</option> | |
</select> | |
<div if.bind="selectedValue=='item1'"> | |
You've selected "item 1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<form submit.delegate="submit()"> | |
<!--<ul><li repeat.for="error of controller.errors">${error.message}</li></ul>--> | |
<div class="form-group"> | |
<label class="control-label" for="first">First Name</label> | |
<input type="text" class="form-control" id="last" placeholder="Last Name" | |
value.bind="person.firstName & validate"> | |
</div> |
NewerOlder