Skip to content

Instantly share code, notes, and snippets.

@jwahyoung
jwahyoung / app.html
Last active June 19, 2018 16:51 — forked from plwalters/app.html
Aurelia Bootstrap Dialog Renderer
<template>
<h1>Dialog Repro</h1>
<button click.delegate="submit()">Open Dialog</button>
</template>
@jwahyoung
jwahyoung / app.html
Created February 7, 2017 05:05 — forked from plwalters/app.html
DI inheritance
<template>
<h1>Dialog Repro</h1>
<button click.delegate="submit()">Open Dialog</button>
</template>
@jwahyoung
jwahyoung / app.html
Last active December 13, 2016 18:52 — forked from jdanyow/app.html
Object binding inside if - view caching?
<template>
<h1>Object binding inside if - view caching?</h1>
<p>Object tags do not appear to be re-rendered inside an if binding. This means that object content does not get refreshed when the if binding changes if fallback content has been inserted.</p>
<ol>
<li>Change the size of the image below using the number input. If you change the number to zero, the image will be invalid and fallback content will appear.</li>
<li>Re-add the number. The content does not refresh. This is a <a href="http://stackoverflow.com/questions/676705/changing-data-content-on-an-object-tag-in-html">known bug.</a></a></li>
<li>However, toggling the content via if.bind does not reset the object itself (although the data should be re-bound). Is the view cached?</li>
</ol>
<input type="number" value.bind="size" />
<button type="button" click.delegate="toggleShow()">Show/Hide object content</button>