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> | |
<div class="container-fluid"> | |
<div class="container-fluid"> | |
<h1>Bootstrap Method (Responsive)</h1> | |
<p><i>The second column will wrap down below on smaller screens... | |
if you see it in one column, try widening the screen</i></p> | |
<div class="row"> | |
<div class="col-xs-6"> | |
<div repeat.for="field of myData | odds"> | |
<p><b>${field.Key}:</b> ${field.value}</p> |
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="./entry"></require> | |
<h2 class='text-center'>Journal Entries</h2> | |
<div> | |
<entry repeat.for='entry of entries' entry.bind='entry' delete-function.call="deleteEntry(entry)"></entry> | |
</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
<template> | |
<require from="./flash-message"></require> | |
<flash-message view-model.ref="flash"></flash-message> | |
</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> | |
<div> | |
<select value.bind="val" if.bind="opts && !val"> | |
<option repeat.for="opt of opts" model.bind="opt">${opt.firstName}</option> | |
</select> | |
<button click.delegate="getOpts()">Get</button> | |
</div> | |
<div if.bind="!opts || person"> | |
<span>First Name: ${person.firstName}</span> | |
<button click.delegate="resetForm()" if.bind="val">Clear Selection</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> | |
${message} | |
</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> | |
Control value: ${controlValue} | |
<form> | |
<div class="form-group"> | |
<test></test> | |
<label for="color">Color</label> | |
<input type="text" value.bind="colorInfo.color" class="form-control" id="color"> | |
<div>Color: ${colorInfo.color}</div> | |
</div> | |
<div class="form-group"> |
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="./inline-svg"></require> | |
<style> | |
.cool { | |
fill: red; | |
} | |
.worked { | |
fill: blue; | |
} | |
</style> |
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="./list"></require> | |
<require from="./row"></require> | |
<list rows.bind="users"> | |
<template replace-part="row-template"> | |
<row name.bind="row.name"></row> | |
</template> | |
</list> | |
</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="list"></require> | |
<require from="list-two"></require> | |
<div> | |
With Objects | |
<list items.bind="list"></list> | |
</div> | |
<div> | |
With Strings |
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 = "login-form"></require> | |
<h1>Login</h1> | |
<login-form></login-form> | |
</template> |