UNPKG

666 BPlain TextView Raw
1import { Router, AppRouter, RouteLoader } from 'aurelia-router';
2import { TemplatingRouteLoader } from './route-loader';
3import { RouterView, RouterViewLocator } from './router-view';
4import { RouteHref } from './route-href';
5import { IFrameworkConfiguration } from './interfaces';
6
7export function configure(config: IFrameworkConfiguration) {
8 config
9 .singleton(RouteLoader, TemplatingRouteLoader)
10 .singleton(Router, AppRouter)
11 .globalResources(
12 RouterView,
13 RouteHref
14 );
15
16 config.container.registerAlias(Router, AppRouter);
17}
18
19export {
20 TemplatingRouteLoader,
21 RouterView,
22 RouterViewLocator,
23 RouteHref
24};