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="./search"></require> | |
<search execute.call="doSearch(query)" delay.bind="400"></search> | |
<ul> | |
<li repeat.for="query of queries">${query}</li> | |
</ul> | |
</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="./slider-value.html"></require> | |
<md-colors md-primary-color="#ee6e73" md-accent-color="#009688"></md-colors> | |
<section class="au-animate"> | |
<h2>YourChoices</h2> | |
<slider-value propertyName.two-way="retirementAge" label="Retirement Age" callback="onRetirementAgeChanged"></slider-value> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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="valueConverters"></require> | |
<div class="row"> | |
<v-grid | |
class="col-md-6" | |
style="height:350px" | |
v-row-height="25" | |
v-current-entity.bind=myCurrentEntity | |
v-collection.bind="myCollection| selected:'isSelected':showOnlySelected" | |
v-grid-context.bind=myGrid> |
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
import {inject} from 'aurelia-dependency-injection'; | |
import {validationRenderer} from 'aurelia-validation'; | |
@validationRenderer | |
@inject(Element) | |
export class BootstrapFormValidationRenderer { | |
constructor(boundaryElement) { | |
this.boundaryElement = boundaryElement; | |
} |
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="./jsonValueConverter"></require> | |
<h1>watch the data grow</h1> | |
${data.length} | |
${data|json} | |
</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> | |
<select value.two-way="selectedMeal"> | |
<option disabled model.bind="null">Select your meal</option> | |
<option repeat.for="meal of food" model.bind="meal">${meal.name}</option> | |
</select> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
</head> | |
<body aurelia-app="main"> | |
<script src="scripts/vendor-bundle.js" data-main="aurelia-bootstrapper"></script> | |
</body> | |
</html> |
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="./auto-width"></require> | |
<md-input md-label="put some text here" md-value.bind="inputValue2" auto-width></md-input> | |
</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> | |
Nested template elements in Internet Explorer 11 | |
<table> | |
<thead> | |
<tr> | |
<th>Date</th> | |
<th>Amount</th> | |
</tr> |
OlderNewer