本文整理汇总了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;
}
开发者ID:zsvanderlaan,项目名称:aurelia-electron-typescript,代码行数:8,代码来源:app.ts
示例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;
}
开发者ID:avizcaino,项目名称:avizcaino.github.io,代码行数:8,代码来源:admin.ts
示例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;
}
开发者ID:glennc,项目名称:Traveller,代码行数:8,代码来源:app.ts
示例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;
}
开发者ID:bfil,项目名称:exar-db,代码行数:8,代码来源:app.ts
示例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;
}
开发者ID:avizcaino,项目名称:avizcaino.github.io,代码行数:8,代码来源:main.ts
示例6: configureRouter
configureRouter(config: RouterConfiguration, router: Router) {
const routes: RouteConfig[] = [
{ route: "", redirect: "basic-use" },
super.getRouteConfig("basic-use"),
];
config.map(routes);
this.router = router;
}
开发者ID:HIRANO-Satoshi,项目名称:demo-materialize,代码行数:8,代码来源:index.ts
示例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;
}
开发者ID:corneliutusnea,项目名称:Akka.Visualizer,代码行数:8,代码来源:app.ts
示例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;
}
开发者ID:killbom,项目名称:my-food-app,代码行数:8,代码来源:app.ts
示例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;
}
开发者ID:avizcaino,项目名称:avizcaino.github.io,代码行数:8,代码来源:main.ts
示例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;
}
开发者ID:monterey-framework,项目名称:simulator,代码行数:8,代码来源:app.ts
注:本文中的aurelia-router.RouterConfiguration类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论