Skip to content

Commit

Permalink
fix: remove 'entryComponents' from the code
Browse files Browse the repository at this point in the history
  • Loading branch information
maxokorokov committed Nov 10, 2021
1 parent 783e882 commit a6fd72b
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
imports: [BrowserModule, NgbModule],
declarations: [NgbdModalFocus, NgbdModalConfirm, NgbdModalConfirmAutofocus],
exports: [NgbdModalFocus],
bootstrap: [NgbdModalFocus],
entryComponents: [NgbdModalConfirm, NgbdModalConfirmAutofocus]
bootstrap: [NgbdModalFocus]
})
export class NgbdModalFocusModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
imports: [BrowserModule, NgbModule],
declarations: [NgbdModalStacked, NgbdModal1Content, NgbdModal2Content],
exports: [NgbdModalStacked],
bootstrap: [NgbdModalStacked],
entryComponents: [NgbdModal1Content, NgbdModal2Content]
bootstrap: [NgbdModalStacked]
})
export class NgbdModalStackedModule {}
3 changes: 1 addition & 2 deletions demo/src/app/components/tabset/tabset.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ export const ROUTES = [
NgbdTabsetJustifyModule,
NgbdTabsetOrientationModule
],
declarations: [NgbdTabsetWarningComponent],
entryComponents: [NgbdTabsetWarningComponent]
declarations: [NgbdTabsetWarningComponent]
})
export class NgbdTabsetModule {
constructor(demoList: NgbdDemoList) {
Expand Down
2 changes: 1 addition & 1 deletion src/alert/alert.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import {NgbAlert} from './alert';
export {NgbAlert} from './alert';
export {NgbAlertConfig} from './alert-config';

@NgModule({declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert]})
@NgModule({declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule]})
export class NgbAlertModule {
}
2 changes: 1 addition & 1 deletion src/alert/alert.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ if (isBrowserVisible('ngb-alert animations')) {
});
}

@Component({selector: 'test-cmp', template: '', entryComponents: [NgbAlert]})
@Component({selector: 'test-cmp', template: ''})
class TestComponent {
name = 'World';
closed = false;
Expand Down
3 changes: 1 addition & 2 deletions src/datepicker/datepicker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export {NgbDatepickerKeyboardService} from './datepicker-keyboard-service';
NgbDatepickerDayView, NgbInputDatepicker
],
exports: [NgbDatepicker, NgbDatepickerContent, NgbInputDatepicker, NgbDatepickerMonth],
imports: [CommonModule, FormsModule],
entryComponents: [NgbDatepicker]
imports: [CommonModule, FormsModule]
})
export class NgbDatepickerModule {
}
6 changes: 1 addition & 5 deletions src/modal/modal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export {NgbModalConfig, NgbModalOptions} from './modal-config';
export {NgbModalRef, NgbActiveModal} from './modal-ref';
export {ModalDismissReasons} from './modal-dismiss-reasons';

@NgModule({
declarations: [NgbModalBackdrop, NgbModalWindow],
entryComponents: [NgbModalBackdrop, NgbModalWindow],
providers: [NgbModal]
})
@NgModule({declarations: [NgbModalBackdrop, NgbModalWindow], providers: [NgbModal]})
export class NgbModalModule {
}
4 changes: 0 additions & 4 deletions src/modal/modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1284,10 +1284,6 @@ class TestA11yComponent {
],
exports: [TestComponent, DestroyableCmpt],
imports: [CommonModule, NgbModalModule],
entryComponents: [
CustomInjectorCmpt, DestroyableCmpt, WithActiveModalCmpt, WithAutofocusModalCmpt, WithFirstFocusableModalCmpt,
WithSkipTabindexFirstFocusableModalCmpt
],
providers: [SpyService]
})
class NgbModalTestModule {
Expand Down
7 changes: 1 addition & 6 deletions src/popover/popover.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ export {NgbPopover} from './popover';
export {NgbPopoverConfig} from './popover-config';
export {Placement} from '../util/positioning';

@NgModule({
declarations: [NgbPopover, NgbPopoverWindow],
exports: [NgbPopover],
imports: [CommonModule],
entryComponents: [NgbPopoverWindow]
})
@NgModule({declarations: [NgbPopover, NgbPopoverWindow], exports: [NgbPopover], imports: [CommonModule]})
export class NgbPopoverModule {
}
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export {NgbTooltipConfig} from './tooltip-config';
export {NgbTooltip} from './tooltip';
export {Placement} from '../util/positioning';

@NgModule({declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow]})
@NgModule({declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip]})
export class NgbTooltipModule {
}
3 changes: 1 addition & 2 deletions src/typeahead/typeahead.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export {NgbTypeahead, NgbTypeaheadSelectItemEvent} from './typeahead';
@NgModule({
declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow],
exports: [NgbTypeahead, NgbHighlight],
imports: [CommonModule],
entryComponents: [NgbTypeaheadWindow]
imports: [CommonModule]
})
export class NgbTypeaheadModule {
}

0 comments on commit a6fd72b

Please sign in to comment.