introduced table components
[outofuni/tavern2.git] / lib / tables_component.dart
diff --git a/lib/tables_component.dart b/lib/tables_component.dart
new file mode 100644 (file)
index 0000000..39bc280
--- /dev/null
@@ -0,0 +1,28 @@
+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);
+
+}
+