--- /dev/null
+class Coord {
+ int x;
+ int y;
+
+ Coord(this.x,this.y);
+}
+
+class Table {
+ String id;
+ String name;
+ int num;
+ int room;
+ Coord coord;
+ String type;
+
+ Table(this.id,this.name,this.num,this.room,this.coord,this.type);
+}
+
--- /dev/null
+import 'dart:async';
+import 'dart:convert';
+
+import 'package:angular2/core.dart';
+import 'package:http/browser_client.dart';
+
+import 'db.dart';
+
+import 'table.dart';
+
+@Injectable()
+class TableService {
+ final BrowserClient _http;
+
+ static const _byroom='_design/tables/_view/byroom';
+ static const _bynum='_design/tables/_view/bynum';
+
+ TableService(this._http);
+}
+
--- /dev/null
+import 'dart:async';
+
+import 'package:angular2/core.dart';
+import 'package:angular2/router.dart';
+
+import 'table.dart';
+import 'table_service.dart';
+
+import 'package:angular2_rbi/directives.dart';
+
+@Component(
+ selector: 'my-tables',
+ templateUrl: 'tables_component.html',
+ styleUrls: const ['tables_component.css'],
+ directives: const [MaterialTextfield,MaterialButton],
+ providers: const [TableService]
+)
+
+class TablesComponent implements OnInit {
+ List<Table> tables;
+ Table selected_table;
+ final TableService _tableSrv;
+ final Router _router;
+
+ TablesComponent(this._tableSrv,this._router);
+
+}
+