當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript aurelia-router.RouterConfiguration類代碼示例

本文整理匯總了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;未經允許,請勿轉載。