Skip to content

Commit

Permalink
fix: remove entryComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell Hu committed Mar 10, 2020
1 parent 886055a commit 5fb0215
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 deletions.
8 changes: 1 addition & 7 deletions components/message/message-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,7 @@ export class NzMessageContainerComponent implements OnInit, OnDestroy {
message.onClose = new Subject<boolean>();
this.messages = [...this.messages, message];

const cdr = this.cdr;

console.log('debug messages length', this.messages, cdr);

// Bug should happen here. messages get updated but change detection failed.
cdr.detectChanges();
cdr.markForCheck();
this.cdr.markForCheck();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions components/message/message.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { NzMessageServiceModule } from './message.service.module';

@NgModule({
imports: [CommonModule, OverlayModule, NzIconModule, NzOutletModule, NzMessageServiceModule],
declarations: [NzMessageContainerComponent, NzMessageComponent],
entryComponents: [NzMessageContainerComponent, NzMessageComponent]
declarations: [NzMessageContainerComponent, NzMessageComponent]
})
export class NzMessageModule {}
3 changes: 1 addition & 2 deletions components/notification/notification.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { NzNotificationServiceModule } from './notification.service.module';

@NgModule({
imports: [CommonModule, OverlayModule, NzIconModule, NzNotificationServiceModule, NzOutletModule],
declarations: [NzNotificationComponent, NzNotificationContainerComponent],
entryComponents: [NzNotificationContainerComponent]
declarations: [NzNotificationComponent, NzNotificationContainerComponent]
})
export class NzNotificationModule {}
3 changes: 1 addition & 2 deletions components/popconfirm/popconfirm.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { NzPopconfirmComponent, NzPopconfirmDirective } from './popconfirm';
NzOverlayModule,
NzNoAnimationModule,
NzToolTipModule
],
entryComponents: [NzPopconfirmComponent]
]
})
export class NzPopconfirmModule {}
1 change: 0 additions & 1 deletion components/popover/popover.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
import { NzPopoverComponent, NzPopoverDirective } from './popover';

@NgModule({
entryComponents: [NzPopoverComponent],
exports: [NzPopoverDirective, NzPopoverComponent],
declarations: [NzPopoverDirective, NzPopoverComponent],
imports: [CommonModule, OverlayModule, NzOutletModule, NzOverlayModule, NzNoAnimationModule, NzToolTipModule]
Expand Down
3 changes: 1 addition & 2 deletions components/tooltip/tooltip.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { NzToolTipComponent, NzTooltipDirective } from './tooltip';
@NgModule({
declarations: [NzToolTipComponent, NzTooltipDirective],
exports: [NzToolTipComponent, NzTooltipDirective],
imports: [CommonModule, OverlayModule, NzOutletModule, NzOverlayModule, NzNoAnimationModule],
entryComponents: [NzToolTipComponent]
imports: [CommonModule, OverlayModule, NzOutletModule, NzOverlayModule, NzNoAnimationModule]
})
export class NzToolTipModule {}

0 comments on commit 5fb0215

Please sign in to comment.