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> | |
| <a href="http://aurelia.io/hub.html#/doc/article/aurelia/validation/latest/validation-basics/9" target="top">Documentation</a> | |
| </div> | |
| <form submit.delegate="submit()" novalidate autocomplete="off"> | |
| <!--<ul><li repeat.for="error of controller.errors">${error.message}</li></ul>--> | |
| <div class="form-group"> | |
| <label class="control-label" for="A">String A</label> | |
| <input type="text" class="form-control" id="A" value.bind="A & validate"> |
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> | |
| <select value.bind="firstName & updateTrigger:'input' & validate"> | |
| <option value='Jason'>Jason</option> | |
| <option value='Fred'>Fred</option> | |
| <option value=''>None</option> |
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
| zXDcv<template> | |
| <form submit.delegate="submit()" novalidate autocomplete="off"> | |
| <!--<ul><li repeat.for="error of controller.errors">${error.message}</li></ul>--> | |
| <div class="form-group"> | |
| <label class="control-label" for="password">Password</label> | |
| <input type="password" class="form-control" id="password" placeholder="Password" | |
| value.bind="password & validate" | |
| > | |
| </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> | |
| <require from="hc-ui-tabcontrol"></require> | |
| <button click.trigger='tc.handleClickEvent("TEST")'>TEST</button> | |
| <button click.trigger='showTC()'>showTC</button> | |
| <ui-tabcontrol controller.ref='tc'> | |
| <tab-page> | |
| <tab-heading>Heading1</tab-heading> |
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="first" placeholder="First Name" | |
| value.bind="firstName & validate"> | |
| </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> | |
| <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="first" placeholder="First Name" | |
| value.bind="firstName & validate"> | |
| </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> | |
| <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> |
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> | |
| <compose view-model="header" view.bind="header.html"></compose> | |
| <h1>${message}</h1> | |
| Links: | |
| <ul> | |
| <li><a href='#/'>root</a></li> | |
| <li><a href='#connect'>connect</a></li> | |
| <li><a href='#connect/testapp'>connect/testapp</a></li> |
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='./mydebounceBindingBehavior'></require> | |
| <input type='checkbox' checked.bind='value & mydebounce:1000'> | |
| <h3>${value}</h3> | |
| </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>Div below (pink border) will become visible if value > 0</div> | |
| <input type='checkbox' checked.bind='value & debounce:1000'> | |
| <div>Double click the button when the value (displayed on the button) is '-1' to produce this issue</div> | |
| <div if.bind='value' style="margin: 20px; border: 1px solid #E69">${value} ${value < 0 ? 'ERROR: Should not stay visible' : ''}</div> | |
| </template> |