diff --git a/components/date-picker/demo/basic.ts b/components/date-picker/demo/basic.ts
index 740037b4dde..9cdb46ca3c0 100644
--- a/components/date-picker/demo/basic.ts
+++ b/components/date-picker/demo/basic.ts
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import getISOWeek from 'date-fns/get_iso_week';
-import { en_US, zh_CN, NzI18nService } from 'ng-zorro-antd';
+import { en_US, zh_CN, NzI18nService } from 'ng-zorro-antd/i18n';
@Component({
selector: 'nz-demo-date-picker-basic',
diff --git a/components/date-picker/nz-range-picker.component.spec.ts b/components/date-picker/nz-range-picker.component.spec.ts
index d6f2a894d30..9a2d38fa324 100644
--- a/components/date-picker/nz-range-picker.component.spec.ts
+++ b/components/date-picker/nz-range-picker.component.spec.ts
@@ -701,8 +701,11 @@ describe('NzRangePickerComponent', () => {
rightInput.dispatchEvent(new KeyboardEvent('keyup', { key: 'Enter' }));
fixture.detectChanges();
tick(500);
+ // @ts-ignore
const result = nzOnChange.calls.allArgs()[0][0];
+ // @ts-ignore
expect(result[0].getDate()).toBe(6);
+ // @ts-ignore
expect(result[1].getDate()).toBe(10);
}));
}); // /specified date picker testing
diff --git a/components/drawer/demo/service.ts b/components/drawer/demo/service.ts
index 8390a6ff2f2..8fa18ec8d33 100644
--- a/components/drawer/demo/service.ts
+++ b/components/drawer/demo/service.ts
@@ -1,7 +1,7 @@
/* entryComponents: NzDrawerCustomComponent */
import { Component, Input, TemplateRef, ViewChild } from '@angular/core';
-import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd';
+import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd/drawer';
@Component({
selector: 'nz-demo-drawer-service',
diff --git a/components/drawer/nz-drawer.spec.ts b/components/drawer/nz-drawer.spec.ts
index e25181c3673..7dc4d4af900 100644
--- a/components/drawer/nz-drawer.spec.ts
+++ b/components/drawer/nz-drawer.spec.ts
@@ -1,12 +1,12 @@
import { ESCAPE } from '@angular/cdk/keycodes';
+import { OverlayContainer } from '@angular/cdk/overlay';
import { Component, Input, TemplateRef, ViewChild } from '@angular/core';
-
import { async, fakeAsync, inject, tick, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { OverlayContainer } from '@angular/cdk/overlay';
import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
-import { dispatchKeyboardEvent } from 'ng-zorro-antd';
+
+import { dispatchKeyboardEvent } from 'ng-zorro-antd/core';
+
import { NzDrawerRef } from './nz-drawer-ref';
import { NzDrawerComponent } from './nz-drawer.component';
import { NzDrawerModule } from './nz-drawer.module';
diff --git a/components/dropdown/demo/context-menu.ts b/components/dropdown/demo/context-menu.ts
index ffd7cd1662f..5b0514ee81c 100644
--- a/components/dropdown/demo/context-menu.ts
+++ b/components/dropdown/demo/context-menu.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzContextMenuService, NzDropdownMenuComponent } from 'ng-zorro-antd';
+import { NzContextMenuService, NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';
@Component({
selector: 'nz-demo-dropdown-context-menu',
diff --git a/components/empty/demo/config.ts b/components/empty/demo/config.ts
index 68b56827061..15f43b0611f 100644
--- a/components/empty/demo/config.ts
+++ b/components/empty/demo/config.ts
@@ -1,5 +1,5 @@
import { Component, TemplateRef, ViewChild } from '@angular/core';
-import { NzEmptyService } from 'ng-zorro-antd';
+import { NzEmptyService } from 'ng-zorro-antd/empty';
@Component({
selector: 'nz-demo-empty-config',
diff --git a/components/icon/demo/iconfont.ts b/components/icon/demo/iconfont.ts
index 6c67f1e8400..0389cb5d8b8 100644
--- a/components/icon/demo/iconfont.ts
+++ b/components/icon/demo/iconfont.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzIconService } from 'ng-zorro-antd';
+import { NzIconService } from 'ng-zorro-antd/icon';
@Component({
selector: 'nz-demo-icon-iconfont',
diff --git a/components/icon/demo/namespace.ts b/components/icon/demo/namespace.ts
index 645f57def59..75dc59030cc 100644
--- a/components/icon/demo/namespace.ts
+++ b/components/icon/demo/namespace.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzIconService } from 'ng-zorro-antd';
+import { NzIconService } from 'ng-zorro-antd/icon';
const ngZorroIconLiteral =
'';
diff --git a/components/list/demo/loadmore.ts b/components/list/demo/loadmore.ts
index 52f1f27ab29..20a247770a3 100644
--- a/components/list/demo/loadmore.ts
+++ b/components/list/demo/loadmore.ts
@@ -1,7 +1,7 @@
// tslint:disable:no-any
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
const count = 5;
const fakeDataUrl = 'https://randomuser.me/api/?results=5&inc=name,gender,email,nat&noinfo';
diff --git a/components/list/demo/simple.ts b/components/list/demo/simple.ts
index 6045f4f5100..8a9ada789b5 100644
--- a/components/list/demo/simple.ts
+++ b/components/list/demo/simple.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-list-simple',
diff --git a/components/mention/demo/async.ts b/components/mention/demo/async.ts
index 147f65d49f0..39f17b1e977 100755
--- a/components/mention/demo/async.ts
+++ b/components/mention/demo/async.ts
@@ -1,5 +1,5 @@
import { Component, ViewEncapsulation } from '@angular/core';
-import { MentionOnSearchTypes } from 'ng-zorro-antd';
+import { MentionOnSearchTypes } from 'ng-zorro-antd/mention';
@Component({
selector: 'nz-demo-mention-async',
diff --git a/components/mention/demo/multiple-trigger.ts b/components/mention/demo/multiple-trigger.ts
index fd3154f171c..21a4d4220e6 100755
--- a/components/mention/demo/multiple-trigger.ts
+++ b/components/mention/demo/multiple-trigger.ts
@@ -1,5 +1,5 @@
import { Component, ViewEncapsulation } from '@angular/core';
-import { MentionOnSearchTypes } from 'ng-zorro-antd';
+import { MentionOnSearchTypes } from 'ng-zorro-antd/mention';
@Component({
selector: 'nz-demo-mention-multiple-trigger',
diff --git a/components/message/demo/close.ts b/components/message/demo/close.ts
index 5f8b429ae9a..1e08b273617 100644
--- a/components/message/demo/close.ts
+++ b/components/message/demo/close.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
import { concatMap } from 'rxjs/operators';
@Component({
diff --git a/components/message/demo/duration.ts b/components/message/demo/duration.ts
index d3da5124667..81335168f49 100644
--- a/components/message/demo/duration.ts
+++ b/components/message/demo/duration.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-message-duration',
diff --git a/components/message/demo/info.ts b/components/message/demo/info.ts
index 16edfe6d538..16fa77b4f79 100644
--- a/components/message/demo/info.ts
+++ b/components/message/demo/info.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-message-info',
diff --git a/components/message/demo/loading.ts b/components/message/demo/loading.ts
index 9edebaf95a1..d543bf9a705 100644
--- a/components/message/demo/loading.ts
+++ b/components/message/demo/loading.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-message-loading',
diff --git a/components/message/demo/other.ts b/components/message/demo/other.ts
index dc1aefeb3fa..b0ed18136ac 100644
--- a/components/message/demo/other.ts
+++ b/components/message/demo/other.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-message-other',
diff --git a/components/modal/demo/confirm-promise.ts b/components/modal/demo/confirm-promise.ts
index 2fcd334658d..88401c322f4 100644
--- a/components/modal/demo/confirm-promise.ts
+++ b/components/modal/demo/confirm-promise.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzModalRef, NzModalService } from 'ng-zorro-antd';
+import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-confirm-promise',
diff --git a/components/modal/demo/confirm.ts b/components/modal/demo/confirm.ts
index aee248e5342..bd68274b4ee 100644
--- a/components/modal/demo/confirm.ts
+++ b/components/modal/demo/confirm.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzModalService } from 'ng-zorro-antd';
+import { NzModalService } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-confirm',
diff --git a/components/modal/demo/footer2.ts b/components/modal/demo/footer2.ts
index bbb8fc7f73d..000f2ab9181 100644
--- a/components/modal/demo/footer2.ts
+++ b/components/modal/demo/footer2.ts
@@ -1,7 +1,7 @@
/* entryComponents: NzModalCustomFooterComponent */
import { Component } from '@angular/core';
-import { NzModalService, NzModalRef } from 'ng-zorro-antd';
+import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-footer2',
@@ -9,8 +9,8 @@ import { NzModalService, NzModalRef } from 'ng-zorro-antd';
-
-
+
+
@@ -35,7 +35,7 @@ export class NzDemoModalFooter2Component {
isVisible = false;
isConfirmLoading = false;
- constructor(private modalService: NzModalService) { }
+ constructor(private modalService: NzModalService) {}
showModal1(): void {
this.isVisible = true;
@@ -78,8 +78,7 @@ export class NzDemoModalFooter2Component {
`
})
export class NzModalCustomFooterComponent {
-
- constructor(private modal: NzModalRef) { }
+ constructor(private modal: NzModalRef) {}
destroyModal(): void {
this.modal.destroy();
diff --git a/components/modal/demo/info.ts b/components/modal/demo/info.ts
index 9b523b409e6..ec63c69ab12 100644
--- a/components/modal/demo/info.ts
+++ b/components/modal/demo/info.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzModalService } from 'ng-zorro-antd';
+import { NzModalService } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-info',
diff --git a/components/modal/demo/locale.ts b/components/modal/demo/locale.ts
index eed8ce0a823..1b1282b02f0 100644
--- a/components/modal/demo/locale.ts
+++ b/components/modal/demo/locale.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzModalService } from 'ng-zorro-antd';
+import { NzModalService } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-locale',
diff --git a/components/modal/demo/manual.ts b/components/modal/demo/manual.ts
index 07b1cb93dc4..712919ddc9f 100644
--- a/components/modal/demo/manual.ts
+++ b/components/modal/demo/manual.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzModalService } from 'ng-zorro-antd';
+import { NzModalService } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-manual',
diff --git a/components/modal/demo/service.ts b/components/modal/demo/service.ts
index a3dbb1e7601..9efb07517f4 100644
--- a/components/modal/demo/service.ts
+++ b/components/modal/demo/service.ts
@@ -1,7 +1,7 @@
/* entryComponents: NzModalCustomComponent */
import { Component, Input, TemplateRef } from '@angular/core';
-import { NzModalRef, NzModalService } from 'ng-zorro-antd';
+import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
@Component({
selector: 'nz-demo-modal-service',
diff --git a/components/notification/demo/basic.ts b/components/notification/demo/basic.ts
index 67cd321ecf6..39e3a6df633 100644
--- a/components/notification/demo/basic.ts
+++ b/components/notification/demo/basic.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-basic',
diff --git a/components/notification/demo/custom-icon.ts b/components/notification/demo/custom-icon.ts
index 0c34b738190..fb70733c9c2 100644
--- a/components/notification/demo/custom-icon.ts
+++ b/components/notification/demo/custom-icon.ts
@@ -1,5 +1,5 @@
import { Component, TemplateRef } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-custom-icon',
diff --git a/components/notification/demo/custom-style.ts b/components/notification/demo/custom-style.ts
index 2d83c4ea0af..fddd4417570 100644
--- a/components/notification/demo/custom-style.ts
+++ b/components/notification/demo/custom-style.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-custom-style',
diff --git a/components/notification/demo/duration.ts b/components/notification/demo/duration.ts
index 1a3fea16351..0b63d19a9b1 100644
--- a/components/notification/demo/duration.ts
+++ b/components/notification/demo/duration.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-duration',
diff --git a/components/notification/demo/placement.ts b/components/notification/demo/placement.ts
index 974eed27da3..c28345fe835 100644
--- a/components/notification/demo/placement.ts
+++ b/components/notification/demo/placement.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-placement',
diff --git a/components/notification/demo/template.ts b/components/notification/demo/template.ts
index 8dc6c2ed386..80866a8748e 100644
--- a/components/notification/demo/template.ts
+++ b/components/notification/demo/template.ts
@@ -1,5 +1,5 @@
import { Component, TemplateRef, ViewChild } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-template',
diff --git a/components/notification/demo/update.ts b/components/notification/demo/update.ts
index 04b06328a72..bbd4e0c0adc 100644
--- a/components/notification/demo/update.ts
+++ b/components/notification/demo/update.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-update',
diff --git a/components/notification/demo/with-btn.ts b/components/notification/demo/with-btn.ts
index d9468087b34..207c812eb09 100644
--- a/components/notification/demo/with-btn.ts
+++ b/components/notification/demo/with-btn.ts
@@ -1,5 +1,5 @@
import { Component, TemplateRef } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-with-btn',
diff --git a/components/notification/demo/with-icon.ts b/components/notification/demo/with-icon.ts
index e721708aab2..c466ae9ea76 100644
--- a/components/notification/demo/with-icon.ts
+++ b/components/notification/demo/with-icon.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzNotificationService } from 'ng-zorro-antd';
+import { NzNotificationService } from 'ng-zorro-antd/notification';
@Component({
selector: 'nz-demo-notification-with-icon',
diff --git a/components/popconfirm/demo/dynamic-trigger.ts b/components/popconfirm/demo/dynamic-trigger.ts
index 705456fed94..6970b57d040 100644
--- a/components/popconfirm/demo/dynamic-trigger.ts
+++ b/components/popconfirm/demo/dynamic-trigger.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-popconfirm-dynamic-trigger',
diff --git a/components/popconfirm/demo/locale.ts b/components/popconfirm/demo/locale.ts
index ac5c48a251e..c9366da0e2c 100644
--- a/components/popconfirm/demo/locale.ts
+++ b/components/popconfirm/demo/locale.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-popconfirm-locale',
diff --git a/components/popconfirm/demo/placement.ts b/components/popconfirm/demo/placement.ts
index 6fae777da70..8e7fb3d9b1e 100644
--- a/components/popconfirm/demo/placement.ts
+++ b/components/popconfirm/demo/placement.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-popconfirm-placement',
diff --git a/components/table/demo/edit-cell.ts b/components/table/demo/edit-cell.ts
index 71832e2f7e2..34552a8fd1a 100644
--- a/components/table/demo/edit-cell.ts
+++ b/components/table/demo/edit-cell.ts
@@ -1,5 +1,5 @@
import { Component, ElementRef, HostListener, OnInit, ViewChild } from '@angular/core';
-import { NzInputDirective } from 'ng-zorro-antd';
+import { NzInputDirective } from 'ng-zorro-antd/input';
@Component({
selector: 'nz-demo-table-edit-cell',
diff --git a/components/table/demo/virtual.ts b/components/table/demo/virtual.ts
index 2dd15c1570e..49b3bf2e79d 100644
--- a/components/table/demo/virtual.ts
+++ b/components/table/demo/virtual.ts
@@ -1,5 +1,5 @@
import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
-import { NzTableComponent } from 'ng-zorro-antd';
+import { NzTableComponent } from 'ng-zorro-antd/table';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
diff --git a/components/transfer/demo/advanced.ts b/components/transfer/demo/advanced.ts
index 9eb8f857ae4..8dade942f0e 100644
--- a/components/transfer/demo/advanced.ts
+++ b/components/transfer/demo/advanced.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-transfer-advanced',
diff --git a/components/transfer/demo/can-move.ts b/components/transfer/demo/can-move.ts
index de0d70e138b..dad4e9c6ed2 100644
--- a/components/transfer/demo/can-move.ts
+++ b/components/transfer/demo/can-move.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { TransferCanMove, TransferItem } from 'ng-zorro-antd';
+import { TransferCanMove, TransferItem } from 'ng-zorro-antd/transfer';
import { of, Observable } from 'rxjs';
import { delay } from 'rxjs/operators';
diff --git a/components/transfer/demo/custom-item.ts b/components/transfer/demo/custom-item.ts
index 24c188eb6d8..9ed3b13614a 100644
--- a/components/transfer/demo/custom-item.ts
+++ b/components/transfer/demo/custom-item.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-transfer-custom-item',
diff --git a/components/tree-select/demo/async.ts b/components/tree-select/demo/async.ts
index c67b8364dff..c0c85017a30 100755
--- a/components/tree-select/demo/async.ts
+++ b/components/tree-select/demo/async.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatEmitEvent } from 'ng-zorro-antd';
+import { NzFormatEmitEvent } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-select-async',
diff --git a/components/tree/demo/basic-controlled.ts b/components/tree/demo/basic-controlled.ts
index 6d51c2503e3..43cb2809552 100644
--- a/components/tree/demo/basic-controlled.ts
+++ b/components/tree/demo/basic-controlled.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatEmitEvent } from 'ng-zorro-antd';
+import { NzFormatEmitEvent } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-basic-controlled',
diff --git a/components/tree/demo/basic.ts b/components/tree/demo/basic.ts
index cea36997175..73986ea0235 100644
--- a/components/tree/demo/basic.ts
+++ b/components/tree/demo/basic.ts
@@ -1,5 +1,6 @@
import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
-import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-antd';
+import { NzFormatEmitEvent, NzTreeNodeOptions } from 'ng-zorro-antd/core';
+import { NzTreeComponent } from 'ng-zorro-antd/tree';
@Component({
selector: 'nz-demo-tree-basic',
diff --git a/components/tree/demo/directory.ts b/components/tree/demo/directory.ts
index 2fc788c8b11..359f2bc47f7 100644
--- a/components/tree/demo/directory.ts
+++ b/components/tree/demo/directory.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
-import { NzContextMenuService, NzDropdownMenuComponent, NzFormatEmitEvent, NzTreeNode } from 'ng-zorro-antd';
+import { NzContextMenuService, NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';
+import { NzFormatEmitEvent, NzTreeNode } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-directory',
diff --git a/components/tree/demo/draggable-confirm.ts b/components/tree/demo/draggable-confirm.ts
index a41f69127d5..0d5b87aa9c4 100644
--- a/components/tree/demo/draggable-confirm.ts
+++ b/components/tree/demo/draggable-confirm.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatBeforeDropEvent } from 'ng-zorro-antd';
+import { NzFormatBeforeDropEvent } from 'ng-zorro-antd/core';
import { of, Observable } from 'rxjs';
import { delay } from 'rxjs/operators';
diff --git a/components/tree/demo/draggable.ts b/components/tree/demo/draggable.ts
index 42269bcec50..450fe85f9c9 100644
--- a/components/tree/demo/draggable.ts
+++ b/components/tree/demo/draggable.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatEmitEvent } from 'ng-zorro-antd';
+import { NzFormatEmitEvent } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-draggable',
diff --git a/components/tree/demo/dynamic.ts b/components/tree/demo/dynamic.ts
index 33d1f806fd4..708e1c4891b 100644
--- a/components/tree/demo/dynamic.ts
+++ b/components/tree/demo/dynamic.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatEmitEvent, NzTreeNodeOptions } from 'ng-zorro-antd';
+import { NzFormatEmitEvent, NzTreeNodeOptions } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-dynamic',
diff --git a/components/tree/demo/line.ts b/components/tree/demo/line.ts
index 2459dfeeafb..f13f6e13959 100644
--- a/components/tree/demo/line.ts
+++ b/components/tree/demo/line.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatEmitEvent } from 'ng-zorro-antd';
+import { NzFormatEmitEvent } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-line',
diff --git a/components/tree/demo/search.ts b/components/tree/demo/search.ts
index 95885d1126d..0adfccc1b8f 100644
--- a/components/tree/demo/search.ts
+++ b/components/tree/demo/search.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-import { NzFormatEmitEvent } from 'ng-zorro-antd';
+import { NzFormatEmitEvent } from 'ng-zorro-antd/core';
@Component({
selector: 'nz-demo-tree-search',
diff --git a/components/upload/demo/avatar.ts b/components/upload/demo/avatar.ts
index 819dd603d88..ffced959486 100644
--- a/components/upload/demo/avatar.ts
+++ b/components/upload/demo/avatar.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
-import { NzMessageService, UploadFile } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
+import { UploadFile } from 'ng-zorro-antd/upload';
import { Observable, Observer } from 'rxjs';
@Component({
diff --git a/components/upload/demo/custom-request.ts b/components/upload/demo/custom-request.ts
index aac3d2ed484..ec42216e38e 100644
--- a/components/upload/demo/custom-request.ts
+++ b/components/upload/demo/custom-request.ts
@@ -1,6 +1,6 @@
import { HttpClient, HttpEvent, HttpEventType, HttpRequest, HttpResponse } from '@angular/common/http';
import { Component } from '@angular/core';
-import { UploadXHRArgs } from 'ng-zorro-antd';
+import { UploadXHRArgs } from 'ng-zorro-antd/upload';
import { forkJoin } from 'rxjs';
@Component({
diff --git a/components/upload/demo/drag.ts b/components/upload/demo/drag.ts
index 34d70b2e23d..9bcce043163 100644
--- a/components/upload/demo/drag.ts
+++ b/components/upload/demo/drag.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { NzMessageService } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-upload-drag',
diff --git a/components/upload/demo/filter.ts b/components/upload/demo/filter.ts
index c94e651d7d8..6fe0e5a4d56 100644
--- a/components/upload/demo/filter.ts
+++ b/components/upload/demo/filter.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
-import { NzMessageService, UploadFile, UploadFilter } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
+import { UploadFile, UploadFilter } from 'ng-zorro-antd/upload';
import { Observable, Observer } from 'rxjs';
@Component({
diff --git a/components/upload/demo/manually.ts b/components/upload/demo/manually.ts
index 1253c12de07..0854c5b3835 100644
--- a/components/upload/demo/manually.ts
+++ b/components/upload/demo/manually.ts
@@ -1,6 +1,7 @@
import { HttpClient, HttpRequest, HttpResponse } from '@angular/common/http';
import { Component } from '@angular/core';
-import { NzMessageService, UploadFile } from 'ng-zorro-antd';
+import { NzMessageService } from 'ng-zorro-antd/message';
+import { UploadFile } from 'ng-zorro-antd/upload';
import { filter } from 'rxjs/operators';
@Component({
diff --git a/components/upload/demo/picture-card.ts b/components/upload/demo/picture-card.ts
index 030d643867f..433678e0ecf 100644
--- a/components/upload/demo/picture-card.ts
+++ b/components/upload/demo/picture-card.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
-import { UploadFile } from 'ng-zorro-antd';
+import { UploadFile } from 'ng-zorro-antd/upload';
@Component({
selector: 'nz-demo-upload-picture-card',