From 89ca644a378f8344e4daffeb25667c756b71c368 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Wed, 21 Mar 2018 11:40:07 +0100 Subject: [PATCH] WIP - hack displaying the table via angularJS --- .../wp-table/embedded/wp-embedded-table.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/app/components/wp-table/embedded/wp-embedded-table.component.ts b/frontend/app/components/wp-table/embedded/wp-embedded-table.component.ts index 99eee6fea0..d0df242981 100644 --- a/frontend/app/components/wp-table/embedded/wp-embedded-table.component.ts +++ b/frontend/app/components/wp-table/embedded/wp-embedded-table.component.ts @@ -17,6 +17,8 @@ import {WorkPackageTableFiltersService} from 'core-components/wp-fast-table/stat import {WorkPackageTableColumnsService} from 'core-components/wp-fast-table/state/wp-table-columns.service'; import {WorkPackageTableSumService} from 'core-components/wp-fast-table/state/wp-table-sum.service'; import {WorkPackageTableAdditionalElementsService} from 'core-components/wp-fast-table/state/wp-table-additional-elements.service'; +import {opUiComponentsModule} from 'core-app/angular-modules'; +import {downgradeComponent} from '@angular/upgrade/static'; @Component({ selector: 'wp-embedded-table', @@ -75,3 +77,9 @@ export class WorkPackageEmbeddedTableComponent implements OnInit, OnDestroy { } } + +// TODO: remove as this should also work by angular2 only +opUiComponentsModule.directive( + 'wpEmbeddedTable', + downgradeComponent({component: WorkPackageEmbeddedTableComponent}) +);