Skip to content

Instantly share code, notes, and snippets.

@JontyMC
JontyMC / app.html
Last active October 9, 2020 10:38 — forked from jawa-the-hutt/app.html
Aurelia Validation Demo - updateTrigger issue?
<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>
@JontyMC
JontyMC / app.html
Created October 9, 2020 10:10 — forked from jsobell/app.html
Validation without bindings...
<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">
@JontyMC
JontyMC / app.html
Last active October 9, 2020 10:08 — forked from jdanyow/app.html
Vuplex select issue
<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>
@JontyMC
JontyMC / app.html
Last active February 6, 2018 08:38 — forked from evenflow58/app.html
Replaceable template nesting
<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>
@JontyMC
JontyMC / index.html
Last active November 14, 2017 16:48 — forked from fkleuver/index.html
Aurelia SetRoot
<!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>