Skip to content

Instantly share code, notes, and snippets.

View tungptvn's full-sized avatar

Tung Pham tungptvn

  • Ho Chi Minh city
View GitHub Profile
<template>
<select value.bind="selected">
<option repeat.for="item of arr" value.bind="item.value">${item.label}</option>
</select>
</template>
@tungptvn
tungptvn / app.html
Created June 14, 2017 17:00 — forked from anonymous/app.html
Aurelia RequireJS Gist
<template>
<require from="./my-element"></require>
<div class="content-panel">
<my-element task.bind="fc" on-completed.call="updateDescription()" save.delegate="parentMethod($event)"></my-element>
</div>
parentProperty = '${parentProperty}'
</template>
@tungptvn
tungptvn / app.html
Created April 19, 2017 15:31 — forked from anonymous/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@tungptvn
tungptvn / app.html
Created September 28, 2016 07:49 — forked from jdanyow/app.html
Aurelia confirm password validation demo
<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"
change.delegate="confirmPassword = ''">
</div>
@tungptvn
tungptvn / app.html
Created August 2, 2016 02:12 — forked from jdanyow/app.html
Aurelia Validation Demo
<template>
<require from="./registration-form"></require>
<registration-form></registration-form>
</template>