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