From fc8d2cb76925e55209b245ebb7cc53368c58be9b Mon Sep 17 00:00:00 2001 From: SubhasisDebsharma Date: Wed, 29 Jan 2020 13:10:34 +0530 Subject: [PATCH 1/2] added BrowserAnimationsModule BrowserAnimationsModule module should present in the main application. --- projects/ng-orgchart-app/src/app/app.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/ng-orgchart-app/src/app/app.module.ts b/projects/ng-orgchart-app/src/app/app.module.ts index 149a259..3835ad1 100644 --- a/projects/ng-orgchart-app/src/app/app.module.ts +++ b/projects/ng-orgchart-app/src/app/app.module.ts @@ -1,7 +1,7 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; - +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { OrgchartModule } from 'ng-orgchart'; @@ -22,6 +22,7 @@ import { EditChartComponent } from './edit-chart/edit-chart.component'; ], imports: [ BrowserModule, + BrowserAnimationsModule, FormsModule, ReactiveFormsModule, AppRoutingModule, From 9f51a28583b05545430e156030660db57700ddda Mon Sep 17 00:00:00 2001 From: SubhasisDebsharma Date: Wed, 29 Jan 2020 13:13:52 +0530 Subject: [PATCH 2/2] remove BrowserAnimationsModule BrowserAnimationsModule should not be used here. It should be used in the main application. --- .../src/lib/components/orgchart/orgchart.module.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/ng-orgchart/src/lib/components/orgchart/orgchart.module.ts b/projects/ng-orgchart/src/lib/components/orgchart/orgchart.module.ts index 3ddaa9c..330554d 100644 --- a/projects/ng-orgchart/src/lib/components/orgchart/orgchart.module.ts +++ b/projects/ng-orgchart/src/lib/components/orgchart/orgchart.module.ts @@ -1,6 +1,5 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ChartContainerComponent } from './chart-container/chart-container.component'; import { ChartNodeComponent } from './chart-node/chart-node.component'; import { NodeSelectService } from './shared/services/node-select.service'; @@ -8,8 +7,7 @@ import { NodeSelectService } from './shared/services/node-select.service'; @NgModule({ declarations: [ChartContainerComponent, ChartNodeComponent], imports: [ - CommonModule, - BrowserAnimationsModule + CommonModule ], exports: [ChartContainerComponent, ChartNodeComponent], providers: [NodeSelectService],