Skip to content

Commit

Permalink
fix(angular): update component modules with forRoot()
Browse files Browse the repository at this point in the history
  • Loading branch information
daanishnasir authored and pauljeter committed May 17, 2019
1 parent a5d0ed2 commit 6352676
Show file tree
Hide file tree
Showing 51 changed files with 459 additions and 102 deletions.
11 changes: 9 additions & 2 deletions angular/src/lib/accordion/accordion.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AccordionComponent, AccordionTabComponent } from '../accordion/accordion.component';
import { AccordionService } from './accordion.service';
Expand All @@ -13,4 +13,11 @@ import { AccordionService } from './accordion.service';
schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
providers: [AccordionService],
})
export class AccordionModule { }
export class AccordionModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AccordionModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/alert-banner/alert-banner.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IconModule } from '../icon';
import { AlertBannerComponent } from './alert-banner.component';
Expand All @@ -8,4 +8,11 @@ import { AlertBannerComponent } from './alert-banner.component';
declarations: [AlertBannerComponent],
exports: [AlertBannerComponent],
})
export class AlertBannerModule {}
export class AlertBannerModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AlertBannerModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/alert-call/alert-call.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OverlayModule } from '@angular/cdk/overlay';
import { PortalModule } from '@angular/cdk/portal';
import { CommonModule } from '@angular/common';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { AvatarModule } from '../avatar';
import { ButtonModule } from '../button';
import { IconModule } from '../icon';
Expand Down Expand Up @@ -39,4 +39,11 @@ import { RemoveHostDirective } from '../utils/directives/remove-host.directive';
providers: [AlertCallService],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AlertCallModule {}
export class AlertCallModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AlertCallModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/alert-meeting/alert-meeting.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OverlayModule } from '@angular/cdk/overlay';
import { PortalModule } from '@angular/cdk/portal';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { AvatarModule } from '../avatar';
import { ButtonModule } from '../button';
import { CompositeAvatarModule } from '../composite-avatar';
Expand All @@ -25,4 +25,11 @@ import { AlertMeetingService } from './alert-meeting.service';
entryComponents: [AlertMeetingContainerComponent],
providers: [AlertMeetingService]
})
export class AlertMeetingModule {}
export class AlertMeetingModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AlertMeetingModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/alert/alert.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OverlayModule } from '@angular/cdk/overlay';
import { PortalModule } from '@angular/cdk/portal';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { ButtonModule } from '../button';
import { IconModule } from '../icon';
import { AlertComponent } from './alert.component';
Expand All @@ -21,4 +21,11 @@ import { AlertService } from './alert.service';
entryComponents: [AlertContainerComponent],
providers: [AlertService],
})
export class AlertModule {}
export class AlertModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AlertModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/avatar/avatar.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ButtonModule } from '../button';
import { IconModule } from '../icon';
Expand All @@ -10,4 +10,11 @@ import { AvatarComponent } from './avatar.component';
declarations: [AvatarComponent],
exports: [AvatarComponent],
})
export class AvatarModule {}
export class AvatarModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AvatarModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/badge/badge.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BadgeComponent } from './badge.component';

Expand All @@ -7,4 +7,11 @@ import { BadgeComponent } from './badge.component';
declarations: [BadgeComponent],
exports: [BadgeComponent],
})
export class BadgeModule {}
export class BadgeModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: BadgeModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/breadcrumbs/breadcrumbs.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BreadcrumbsComponent } from './breadcrumbs.component';

Expand All @@ -10,4 +10,11 @@ import { BreadcrumbsComponent } from './breadcrumbs.component';
exports: [BreadcrumbsComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class BreadcrumbsModule { }
export class BreadcrumbsModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: BreadcrumbsModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/button-group/button-group.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ButtonGroupComponent } from './button-group.component';

Expand All @@ -7,4 +7,11 @@ import { ButtonGroupComponent } from './button-group.component';
imports: [CommonModule],
exports: [ButtonGroupComponent],
})
export class ButtonGroupModule {}
export class ButtonGroupModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: ButtonGroupModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/call-control/call-control.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ButtonModule } from '../button';
import { IconModule } from '../icon';
Expand All @@ -9,4 +9,11 @@ import { CallControlComponent } from './call-control.component';
declarations: [CallControlComponent],
exports: [CallControlComponent],
})
export class CallControlModule {}
export class CallControlModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: CallControlModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/checkbox/checkbox.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CheckboxComponent } from './checkbox.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
Expand All @@ -17,4 +17,11 @@ import { InputHelperModule } from '../input-helper';
exports: [CheckboxComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class CheckboxModule {}
export class CheckboxModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: CheckboxModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/coachmark/coachmark.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CoachmarkComponent } from './coachmark.component';

Expand All @@ -10,4 +10,11 @@ import { CoachmarkComponent } from './coachmark.component';
exports: [CoachmarkComponent],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
export class CoachmarkModule { }
export class CoachmarkModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: CoachmarkModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/composite-avatar/composite-avatar.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AvatarModule } from '../avatar';
import { CompositeAvatarComponent } from './composite-avatar.component';
Expand All @@ -8,4 +8,11 @@ import { CompositeAvatarComponent } from './composite-avatar.component';
declarations: [CompositeAvatarComponent],
exports: [CompositeAvatarComponent],
})
export class CompositeAvatarModule {}
export class CompositeAvatarModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: CompositeAvatarModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/date-picker/date-picker.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DatePickerComponent } from './date-picker.component';
import { DatePickerCalendarModule } from './date-picker-calendar.module';
Expand All @@ -13,4 +13,11 @@ import { OverlayModule } from '@angular/cdk/overlay';
],
exports: [DatePickerComponent]
})
export class DatePickerModule { }
export class DatePickerModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: DatePickerModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/editable-textfield/editable-textfield.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { InputModule } from '../input';
Expand All @@ -10,4 +10,11 @@ import { EditableTextfieldComponent } from './editable-textfield.component';
exports: [EditableTextfieldComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class EditableTextfieldModule {}
export class EditableTextfieldModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: EditableTextfieldModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/icon/icon.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IconComponent } from './icon.component';

Expand All @@ -8,4 +8,11 @@ import { IconComponent } from './icon.component';
exports: [IconComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class IconModule {}
export class IconModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: IconModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/input-error/input-error.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InputErrorComponent } from './input-error.component';

Expand All @@ -7,4 +7,11 @@ import { InputErrorComponent } from './input-error.component';
imports: [CommonModule],
exports: [InputErrorComponent],
})
export class InputErrorModule {}
export class InputErrorModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: InputErrorModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/input-helper/input-helper.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InputHelperComponent } from './input-helper.component';

Expand All @@ -7,4 +7,11 @@ import { InputHelperComponent } from './input-helper.component';
imports: [CommonModule],
exports: [InputHelperComponent],
})
export class InputHelperModule {}
export class InputHelperModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: InputHelperModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/input/input.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InputComponent } from './input.component';
import { LabelModule } from '../label';
Expand All @@ -20,4 +20,11 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
],
exports: [InputComponent],
})
export class InputModule {}
export class InputModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: InputModule,
providers: [],
};
}
}
11 changes: 9 additions & 2 deletions angular/src/lib/label/label.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LabelComponent } from './label.component';

Expand All @@ -8,4 +8,11 @@ import { LabelComponent } from './label.component';
exports: [LabelComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class LabelModule {}
export class LabelModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: LabelModule,
providers: [],
};
}
}
Loading

0 comments on commit 6352676

Please sign in to comment.