Skip to content

Instantly share code, notes, and snippets.

@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) {