update views + reduced providers in main app
[outofuni/tavern2.git] / lib / app_component.dart
index 2175bdf..814cfb9 100644 (file)
@@ -6,8 +6,8 @@ import 'package:angular2_rbi/directives.dart';
 import 'product_component.dart';
 import 'product_category_component.dart';
 import 'product_detail_component.dart';
 import 'product_component.dart';
 import 'product_category_component.dart';
 import 'product_detail_component.dart';
-import 'product_service.dart';
-import 'product_category_service.dart';
+
+import 'tables_component.dart';
 
 @Component(
        selector: 'my-app',
 
 @Component(
        selector: 'my-app',
@@ -18,8 +18,6 @@ import 'product_category_service.dart';
                MaterialLayout
        ],
        providers: const [
                MaterialLayout
        ],
        providers: const [
-               ProductService,
-               ProductCategoryService,
                ROUTER_PROVIDERS
        ]
 )
                ROUTER_PROVIDERS
        ]
 )
@@ -40,6 +38,11 @@ import 'product_category_service.dart';
                path: '/product/:id',
                name: 'ProductDetail',
                component: ProductDetailComponent
                path: '/product/:id',
                name: 'ProductDetail',
                component: ProductDetailComponent
+       ),
+       const Route(
+               path: '/tables',
+               name: 'Tables',
+               component: TablesComponent
        )
 ])
 
        )
 ])