Skip to content

Instantly share code, notes, and snippets.

@fabioluz
fabioluz / app.html
Created July 6, 2017 18:10
Aurelia RJS
<template>
${message} df
</template>
@fabioluz
fabioluz / app.html
Created July 6, 2017 18:09
Aurelia RJS
<template>
${message}
</template>
<template>
<require from="./some-element"></require>
<require from="./intercept-binding-behavior"></require>
${message}
<Br>
<button click.delegate="changeFromVM()">Change from VM</button>
<hr>
<some-element value.bind="message & intercept"></some-element>
<template>
Reversed:
<p repeat.for="friend of friends | reverse">Hello, ${friend}!</p>
<hr>
Original:
<p repeat.for="friend of friends">Hello, ${friend}!</p>
</template>
@fabioluz
fabioluz / app.html
Last active June 12, 2017 17:02
Aurelia RJS Router
<template>
<router-view></router-view>
</template>
<template>
<div class="container content-alignment">
<h3>Add New User</h3>
<hr>
<div class="col-md-5 col-xs-12">
<form role="form" submit.delegate="signup()">
<div class="form-group">
<label for="con_pwd">User Type:</label>
<select class="form-control" value.bind="user_type">
<option value="">Select Type</option>
<template>
<require from="./test.html"></require>
${message}
<br><br>
<test>
<template replace-part="content">Test ${i}</template>
</test>
</template>
@fabioluz
fabioluz / app.html
Created May 16, 2017 15:56 — forked from mar9000/app.html
bad slot projection with i18n (aurelia-i18n #197)
<template>
<!-- The following require is required as a workaround for last version of materializecss. -->
<require from="materialize/dist/css/materialize.css"></require>
<div>
<p>
<md-checkbox md-checked.bind="checked">A default checkbox</md-checkbox> with value: ${checked | stringify}
</p>
<p>
<md-checkbox md-checked="false" md-disabled="true">A disabled checkbox</md-checkbox>
</p>
<template>
<div repeat.for="option of options">
<input type="radio" id="${option}_id" name="radio_options" value.bind="option" checked.bind="optionValue | asInt"/>
<label for="${option}_id" id="${option}_label">${option}</label>
</div>
<p>Selected Option: ${optionValue} </p>
</template>
@fabioluz
fabioluz / app.html
Created March 23, 2017 17:23
Aurelia RJS
<template>
${message}
</template>