Skip to content

Instantly share code, notes, and snippets.

@nevercast
Created Jan 25, 2016
Embed
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);
routerConfig
.map([{ route: "foo", moduleId: "features/foo/foo", name: "foo", nav: true, title: "foo" }])
.exportToRouter(router);
}
@nevercast
Copy link
Author

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