Skip to content

Commit

Permalink
fix(module:drawer): drawer not open (#8120)
Browse files Browse the repository at this point in the history
Drawer don't open in a lazyload module

refactor(module:drawer): remove useless DrawerServiceModule
  • Loading branch information
Nicoss54 authored Oct 23, 2023
1 parent 3209d74 commit 24d0664
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
14 changes: 3 additions & 11 deletions components/drawer/drawer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,11 @@ import { NzIconModule } from 'ng-zorro-antd/icon';

import { NzDrawerContentDirective } from './drawer-content.directive';
import { NzDrawerComponent } from './drawer.component';
import { NzDrawerServiceModule } from './drawer.service.module';
import { NzDrawerService } from './drawer.service';

@NgModule({
imports: [
BidiModule,
CommonModule,
OverlayModule,
PortalModule,
NzIconModule,
NzOutletModule,
NzNoAnimationModule,
NzDrawerServiceModule
],
imports: [BidiModule, CommonModule, OverlayModule, PortalModule, NzIconModule, NzOutletModule, NzNoAnimationModule],
providers: [NzDrawerService],
exports: [NzDrawerComponent, NzDrawerContentDirective],
declarations: [NzDrawerComponent, NzDrawerContentDirective]
})
Expand Down
9 changes: 0 additions & 9 deletions components/drawer/drawer.service.module.ts

This file was deleted.

2 changes: 1 addition & 1 deletion components/drawer/drawer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class DrawerBuilderForService<T extends {}, R> {
}
}

@Injectable({ providedIn: 'root' })
@Injectable()
export class NzDrawerService {
constructor(private overlay: Overlay) {}

Expand Down
7 changes: 3 additions & 4 deletions components/drawer/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/

export * from './drawer.component';
export * from './drawer-content.directive';
export * from './drawer.module';
export * from './drawer.service';
export * from './drawer.service.module';
export * from './drawer-options';
export * from './drawer-ref';
export * from './drawer.component';
export * from './drawer.module';
export * from './drawer.service';

0 comments on commit 24d0664

Please sign in to comment.