shared.module.ts 882B

12345678910111213141516171819202122
  1. import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
  2. import { NgbDateAdapter } from '@ng-bootstrap/ng-bootstrap';
  3. import { NgbDateMomentAdapter } from './util/datepicker-adapter';
  4. import { ZipConnectSharedLibsModule, ZipConnectSharedCommonModule, JhiLoginModalComponent, HasAnyAuthorityDirective } from './';
  5. @NgModule({
  6. imports: [ZipConnectSharedLibsModule, ZipConnectSharedCommonModule],
  7. declarations: [JhiLoginModalComponent, HasAnyAuthorityDirective],
  8. providers: [{ provide: NgbDateAdapter, useClass: NgbDateMomentAdapter }],
  9. entryComponents: [JhiLoginModalComponent],
  10. exports: [ZipConnectSharedCommonModule, JhiLoginModalComponent, HasAnyAuthorityDirective],
  11. schemas: [CUSTOM_ELEMENTS_SCHEMA]
  12. })
  13. export class ZipConnectSharedModule {
  14. static forRoot() {
  15. return {
  16. ngModule: ZipConnectSharedModule
  17. };
  18. }
  19. }