Skip to content

Instantly share code, notes, and snippets.

View TylerJPresley's full-sized avatar

Tyler J Presley TylerJPresley

View GitHub Profile
@TylerJPresley
TylerJPresley / attached.js
Created July 9, 2017 03:05 — forked from peisenmann/attached.js
Aurelia custom attribute to invoke a callback when an element gets added to the dom. Demo: http://plnkr.co/edit/fguuz4
import {customAttribute, bindable, LogManager} from 'aurelia-framework';
const logger:Logger = LogManager.getLogger("attached");
/**
* MIT License. Patrick Eisenmann.
* Apply this attribute to an element to have a callback invoked when the element added to the DOM
*
* @param {Function} callback. Required. The function to be invoked.
* The first argument to the callback is the Element that had the attached on it.
@TylerJPresley
TylerJPresley / app.html
Last active December 15, 2016 20:35 — forked from pjschreifels/app.html
Select all trigger for checked.bind values.
<template>
<require from="./page"></require>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<page></page>
</div>
</div>
</div>