UNPKG

aurelia-router-metadata

Version:

Adds decorator configuration with conventions and eager loading capabilities to aurelia-router

9 lines (7 loc) 340 B
// tslint:disable:no-implicit-dependencies // tslint:disable:no-unnecessary-class import { configureRouter } from "@src/decorators"; import { useView } from "aurelia-templating"; @useView("pages/default-parent.html") @configureRouter(["pages/page1/page2/page1", "pages/page1/page2/page2", "pages/page1/page2/page3"]) export class Page2 {}