Skip to content

Instantly share code, notes, and snippets.

Created Jan 25, 2016
What would you like to do?
Creating routes from aurelia features
import {AppRouter, RouterConfiguration} from "aurelia-router";
export function configure(config) {
const router = config.container.get(AppRouter);
const routerConfig = config.container.get(RouterConfiguration);
.map([{ route: "foo", moduleId: "features/foo/foo", name: "foo", nav: true, title: "foo" }])
Copy link

nevercast commented Jan 25, 2016

stoffeastrom dropped this on Aurelia/Discuss in Gitter. Felt I best save it for reference in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment