replace ng2-truncate with a naive own implementation, because ng2-truncate isnt compatible with the AoT build

This commit is contained in:
Art Lowel
2017-06-22 13:03:54 +02:00
parent 7b62c790ae
commit ac58c8c2aa
5 changed files with 46 additions and 337 deletions

View File

@@ -17,13 +17,13 @@ import { NativeWindowFactory, NativeWindowService } from "./window.service";
import { ComcolPageContentComponent } from "./comcol-page-content/comcol-page-content.component";
import { ComcolPageHeaderComponent } from "./comcol-page-header/comcol-page-header.component";
import { ComcolPageLogoComponent } from "./comcol-page-logo/comcol-page-logo.component";
import { TRUNCATE_PIPES } from "ng2-truncate";
import { EnumKeysPipe } from "./utils/enum-keys-pipe";
import { ObjectListComponent } from "./object-list/object-list.component";
import { ObjectListElementComponent } from "../object-list/object-list-element/object-list-element.component";
import { ItemListElementComponent } from "../object-list/item-list-element/item-list-element.component";
import { CommunityListElementComponent } from "../object-list/community-list-element/community-list-element.component";
import { CollectionListElementComponent } from "../object-list/collection-list-element/collection-list-element.component";
import { TruncatePipe } from "./utils/truncate.pipe";
const MODULES = [
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
@@ -39,8 +39,8 @@ const MODULES = [
const PIPES = [
FileSizePipe,
SafeUrlPipe,
TRUNCATE_PIPES,
EnumKeysPipe
EnumKeysPipe,
TruncatePipe
// put pipes here
];