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> | |
| <style> | |
| .container { | |
| height: 52px; | |
| width: 52px; | |
| margin-bottom: 8px; | |
| } | |
| .box { | |
| display: inline-block; | |
| border: 1px dashed; |
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> | |
| <style> | |
| .container { | |
| height: 52px; | |
| width: 52px; | |
| margin-bottom: 8px; | |
| } | |
| .box { | |
| display: inline-block; | |
| border: 1px dashed; |
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> | |
| <style> | |
| label { | |
| display: block; | |
| cursor: pointer; | |
| } | |
| .taco-image { | |
| position: absolute; | |
| max-height: 100px; |
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="breadcrumbsCustomElement"></require> | |
| <breadcrumbs view-model.ref="breadcrumbs"></breadcrumbs> | |
| <router-view></router-view> | |
| </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> | |
| <style> | |
| label {display: block; padding: 4px 0;} | |
| </style> | |
| <hr/> | |
| <label> | |
| First Name: <input value.bind='firstName' /> | |
| </label> | |
| <label> |
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> | |
| ${map.get('a')}: should be ${a} | |
| </div> | |
| <br /> | |
| <div> | |
| <div repeat.for="val of map.get('b')">${val} should be ${b[$index]}</div> | |
| </div> | |
| <button click.delegate="click()">click</button> | |
| </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> | |
| ${map.get('a')}: should be ${a} | |
| </div> | |
| <br /> | |
| <div> | |
| <div repeat.for="val of map.get('b')">${val} should be ${b[$index]}</div> | |
| </div> | |
| <button click.delegate="click()">click</button> | |
| </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> | |
| <pre>${points | toPath}</pre> | |
| <div repeat.for="point of points"> | |
| X <input type="number" value.bind="point.x | number" /> | |
| y <input type="number" value.bind="point.y | number" /> | |
| </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> | |
| <h1>Refresh Binding Behavior</h1> | |
| <p>Based off of work by <a href="http://www.sobell.net/aurelia-dirty-checking-a-function/">Jason Sobell</a> and <a href="https://www.danyow.net/aurelia-binding-behaviors/">Jeremy Danyow</a></a></p> | |
| <require from="refresh-binding-behavior"></require> | |
| <h2>Observe properties of arrays of objects</h2> | |
| <div> | |
| <b>60 fps</b> | |
| <pre>${points | json & refresh: 16}</pre> | |
| </div> |
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> | |
| <h2>Observe changes to a list</h2> | |
| <p>We can observe items in a list and bind to their properties using the repeat.for binding</p> | |
| <div repeat.for="item of items"> | |
| <h3> | |
| ${item.name} | |
| <label> | |
| <input type="checkbox" checked.bind="item.good" /> | |
| Good? | |
| </label> |