Skip to content

Instantly share code, notes, and snippets.

View martonsagi's full-sized avatar

Márton Sági martonsagi

View GitHub Profile
<template>
<require from="./inline-view"></require>
<inline-view></inline-view>
</template>
@martonsagi
martonsagi / app.html
Created October 27, 2016 12:09 — forked from geleto/app.html
Aurelia - change to a bound repeat input element is applied to the VM a second time after the element has been deleted.
<template>
<div repeat.for="msg of messages">
<input type="text" value.bind="msg" input.delegate="onMessageChanged(msg, $index)">
</div>
</template>
@martonsagi
martonsagi / app.html
Last active January 13, 2017 16:04 — forked from jdanyow/app.html
Aurelia Compose view-model.ref
<template>
<require from="./custom-component"></require>
<require from="./body-component"></require>
<require from="./footer-component"></require>
<h1>${message}</h1>
<body-component>
<compose view-model="./custom-component" view-model.ref="customVM"></compose>