Skip to content

Instantly share code, notes, and snippets.

@tdamir
tdamir / app.html
Last active October 5, 2016 11:46 — forked from Thanood/app.html
Aurelia - Materialize Select issue #292 - selectedValue 0.17.1
<template>
<button click.trigger="gotoPage1()">Goto page1</button>
<button click.trigger="gotoPage2()">Goto page2</button>
<router-view></router-view>
</template>
@tdamir
tdamir / RouteGeneratorService.ts
Last active November 29, 2018 15:55
Aurelia parent+child route generation
import { autoinject } from 'aurelia-dependency-injection';
import { Router, RouterConfiguration } from 'aurelia-router';
import { CompositionEngine } from 'aurelia-templating';
import { relativeToFile } from 'aurelia-path';
import { Origin } from 'aurelia-metadata';
/**
* Usage:
* app.ts
* async attached(params, routeConfig, navigationInstruction) {
@tdamir
tdamir / app.html
Created January 10, 2017 15:18 — forked from niieani/app.html
Aurelia Gist
<template>
<require from="./test"></require>
compose: <compose view="test.html" view-model.bind="testInstance"></compose>
<hr/>
test: <test view-model.bind="testInstance"></test>
</template>