import {inject} from 'aurelia-framework';
import {Database} from './services/db';

@inject(Database)
export class App {

  constructor(db) {
    this.db = db;
  }

  activate() {
    return this.db.load();
  }

  configureRouter(config, router) {
    config.title = 'Höranlagen';
    config.map([{
      route: ['', 'home'],
      name: 'home',
      moduleId: './pages/home',
      nav: false,
      title: 'Home'
    }, {
      route: 'list',
      name: 'list',
      moduleId: './pages/list',
      nav: false,
      title: 'List',
      options: {
        animation: 'lift'
      }
    }, {
      route: 'room/:id',
      name: 'room',
      moduleId: './pages/room/index',
      nav: false,
      title: 'Room'
    }]);
  }
}

@@ -390,30 +390,9 @@
 alse
-,%0A      title: 'Home'
 %0A
+
     
@@ -491,29 +491,8 @@
 se,%0A
-      title: 'List',%0A
     
@@ -630,16 +630,16 @@
 index',%0A
+
       na
@@ -650,29 +650,8 @@
 alse
-,%0A      title: 'Room'
 %0A   

remove route titles