import {bindable, processContent, noView, customElement} from 'aurelia-framework' @processContent(function(viewCompiler, viewResources, element, instruction) { instruction.viewFactory = viewCompiler.compile('', viewResources, instruction); element.innerHTML = ''; return false; }) @noView export class CreateLocationCustomElement { @bindable myContact; save() { alert(this.myContact.phone); } }