configureRouter(config: RouterConfiguration, router: Router) {
    config.title = 'Aurelia';
    config.map([
      { route: ['', 'dashboard'], name: 'dashboard', moduleId: 'pages/dashboard', nav: true, title: 'Dashboard' }
    ]);

    this.router = router;
  }  
  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;
  }
Exemple #3
0
  configureRouter(config: RouterConfiguration, router: Router) {
    config.title = 'Traveller Data';
    config.map([
      { route: ['', 'ship'], name: 'ship',      moduleId: 'ship',      nav: true, title: 'Ship' },
    ]);

    this.router = router;
  }
Exemple #4
0
 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;
 }
  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;
  }
	configureRouter(config: RouterConfiguration, router: Router) {
		const routes: RouteConfig[] = [
			{ route: "", redirect: "basic-use" },
			super.getRouteConfig("basic-use"),
		];
		config.map(routes);
		this.router = router;
	}
  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;
  }
Exemple #8
0
    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;
    }
  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;
  }
Exemple #10
0
  configureRouter(config: RouterConfiguration, router: Router) {
    config.title = 'Simulator';
    config.map([
      { route: ['', 'welcome'], name: 'welcome',      moduleId: 'welcome',      nav: true, title: 'Welcome' },
    ]);

    this.router = router;
  }