This file contains 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="./language-switcher"></require> | |
<language-switcher languages.bind="languages" selected-language.bind="selectedLanguage"> | |
</language-switcher> | |
<br><br> | |
${selectedLanguage.shortName} | |
</template> |
This file contains 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> | |
<router-view></router-view> | |
</template> |
This file contains 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()"> | |
<h1>${title}</h1> | |
<div class="form-group"> | |
<label class="control-label" for="last">Name</label> | |
<input type="text" class="form-control" placeholder="Name" | |
value.bind="driver.name & validate"> | |
</div> | |
<div class="form-group"> |
This file contains 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="./child"></require> | |
<button click.delegate="newItems()">new items</button> | |
<child repeat.for="item of items" id.bind="item.id" value.bind="item.value"></child> | |
</template> |
This file contains 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> | |
<button click.delegate="toggleLine()">toggleLine</button><br/> | |
<svg width="100" height="100"> | |
<line | |
if.bind="line" | |
x1.bind="line.sx" | |
y1.bind="line.sy" | |
x2.bind="line.ex" | |
y2.bind="line.ey" stroke="black"></line> | |
</svg> |
This file contains 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> | |
<button type="button" click.delegate="onChange($event, 'm1')">M1</button> | |
<button type="button" click.delegate="onChange($event, 'm2')">M2</button> | |
<button type="button" click.delegate="logModel($event)">Log</button> | |
<compose view.bind="myView" model.bind="$this"></compose> | |
</template> |
This file contains 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>${value}</h1> | |
</template> |
This file contains 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> | |
<label>Car</label> | |
<select value.bind="selectedCar"> | |
<option repeat.for="car of cars" model.bind="car">${car.name}</option>) | |
</select> | |
<br> | |
Selected car: <b>${selectedCar.name}</b> | |
<br> | |
<button click.delegate="selectCar(0)">Select Audi</button> |
This file contains 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> | |
<div if.bind="isLoading"> | |
<h1>Loading ...</h1> | |
</div> | |
<div if.bind="!isLoading"> | |
<h1>Done!</h1> | |
<p ref="messageRef">${message}</p> | |
<p>${messageRef}</p> | |
</div> | |
</template> |
This file contains 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()"> | |
<div class="form-group"> | |
<label class="control-label" for="email">Email</label> | |
<input type="text" class="form-control" id="email" placeholder="Email" | |
value.bind="model[field] & validate:rules"> | |
</div> | |
<button type="submit" class="btn btn-primary">Submit</button> | |
</form> |