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()"> | |
<!--<ul><li repeat.for="error of controller.errors">${error.message}</li></ul>--> | |
<div class="form-group"> | |
<label class="control-label" for="name">Name</label> | |
<input type="text" class="form-control" id="name" placeholder="Name" | |
value.bind="user.name & validate"> | |
</div> |
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()" novalidate autocomplete="off"> | |
<div> | |
<button type="submit" class="btn btn-primary">Submit</button> | |
<button class="btn btn-success" click.delegate='reset()'>Reset</button> | |
<button class="btn btn-info" click.delegate='silent()'>Check...</button>${silentResult} | |
</div> | |
<!--<ul><li repeat.for="error of controller.errors">${error.message}</li></ul>--> | |
<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> | |
<div style="position: fixed; background: green; width: 300px; height: 500px; z-index: 1"> | |
<select> | |
<option>Test Option One</option> | |
<option>Test Option Two</option> | |
<option>Test Option Three</option> | |
</select> | |
</div> | |
<div style="position: fixed; background: green; width: 300px; height: 500px; z-index: 1; top: 100px;"> | |
<select> |
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="./component-one.html"></require> | |
<require from="./component-two.html"></require> | |
<component-one></component-one> | |
<component-two> | |
<template replace-part="item-template">This should override default template 2, but doesn't</template> | |
</component-two> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.6/bluebird.min.js"></script> | |
</head> | |
<body aurelia-app="src/main"> | |
<script src="https://cdn.rawgit.com/aurelia/aurelia/master/scripts/system.js"></script> | |
<script src="https://cdn.rawgit.com/aurelia/aurelia/master/scripts/config-typescript.js"></script> |