X-Git-Url: https://hackdaworld.org/gitweb/?p=outofuni%2Ftavern2.git;a=blobdiff_plain;f=lib%2Ftables_component.dart;fp=lib%2Ftables_component.dart;h=39bc280859d39ccd5dbc77c3317971631b6cfb0d;hp=0000000000000000000000000000000000000000;hb=678f7561b74d47e36309ac4ee1007a326e4b7650;hpb=74001e08303ce797811fc91816a67c2006fe0a25 diff --git a/lib/tables_component.dart b/lib/tables_component.dart new file mode 100644 index 0000000..39bc280 --- /dev/null +++ b/lib/tables_component.dart @@ -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 tables; + Table selected_table; + final TableService _tableSrv; + final Router _router; + + TablesComponent(this._tableSrv,this._router); + +} +