Skip to content

Instantly share code, notes, and snippets.

@gkinsman
Created December 11, 2016 04:14
Show Gist options
  • Save gkinsman/77acaea68633c759945848d761b79c75 to your computer and use it in GitHub Desktop.
Save gkinsman/77acaea68633c759945848d761b79c75 to your computer and use it in GitHub Desktop.
import {customAttribute} from 'aurelia-framework';
import {autoinject} from 'aurelia-framework';
import * as $ from "jquery";
@autoinject
@customAttribute('found')
export class FoundationCustomAttribute {
constructor(private element: Element) {
}
attached() {
$(this.element).foundation();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment