本文整理汇总了TypeScript中aurelia-router.RouterConfiguration类的典型用法代码示例。如果您正苦于以下问题:TypeScript RouterConfiguration类的具体用法?TypeScript RouterConfiguration怎么用?TypeScript RouterConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RouterConfiguration类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'Aurelia';
config.map([
{ route: ['', 'dashboard'], name: 'dashboard', moduleId: 'pages/dashboard', nav: true, title: 'Dashboard' }
]);
this.router = router;
}
示例2: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.map([
{ route: 'new-post', name: 'new-post', moduleId: './new-post', nav: false, title: 'New Post' },
{ route: ['','posts'], name: 'posts', moduleId: './post-list', nav: false, title: 'Posts' }
]);
this.router = router;
}
示例3: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'Traveller Data';
config.map([
{ route: ['', 'ship'], name: 'ship', moduleId: 'ship', nav: true, title: 'Ship' },
]);
this.router = router;
}
示例4: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'Exar UI';
config.map([
{ route: '', name: 'home', moduleId: 'views/home', nav: false, title: 'Home' },
{ route: 'manage-connections', name: 'manage-connections', moduleId: 'views/manage-connections', nav: false, title: 'Manage Connections' }
]);
this.router = router;
}
示例5: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.map([
{ route: ['', 'blog'], name: 'blog', moduleId: './blog', nav: false, title: '' },
{ route: 'post/:id', name: 'post', moduleId: './post', nav: false, title: '' }
]);
this.router = router;
}
示例6: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
const routes: RouteConfig[] = [
{ route: "", redirect: "basic-use" },
super.getRouteConfig("basic-use"),
];
config.map(routes);
this.router = router;
}
示例7: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'Akka.Visualize';
config.map([
{ route: ['', 'akka'], name: 'akka', moduleId: 'akka/index', nav: true, title: 'akka://' }
]);
this.router = router;
}
示例8: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'my-food-app';
config.map([
{ route: ['', 'home'], name: 'home', moduleId: 'home', nav: true, title: 'Home' }
]);
this.router = router;
}
示例9: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.map([
{ route: ['', 'login'], name: 'login', moduleId: './login', nav: false, title: 'Login' },
{ route: 'admin', name: 'admin', moduleId: './admin', nav: false, title: 'Admin' }
]);
this.router = router;
}
示例10: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'Simulator';
config.map([
{ route: ['', 'welcome'], name: 'welcome', moduleId: 'welcome', nav: true, title: 'Welcome' },
]);
this.router = router;
}