Skip to content

Commit ce1c315

Browse files
authored
feat(design): remove DaffPrefixSuffixModule import from DaffMenuItemComponent (#3685)
1 parent e51d34a commit ce1c315

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<ng-container *ngIf="_prefix">
1+
@if (_prefix) {
22
<ng-content select="[daffPrefix]"></ng-content>
3-
</ng-container>
3+
}
44
<div class="daff-menu-item__content">
55
<ng-content></ng-content>
66
</div>

libs/design/menu/src/menu-item/menu-item.component.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
import { NgIf } from '@angular/common';
21
import {
32
Component,
43
ChangeDetectionStrategy,
54
HostBinding,
65
ContentChild,
76
} from '@angular/core';
87

9-
import {
10-
DaffPrefixDirective,
11-
DaffPrefixSuffixModule,
12-
} from '@daffodil/design';
8+
import { DaffPrefixDirective } from '@daffodil/design';
139

1410
@Component({
1511
selector: 'a[daff-menu-item]' + ',' +
1612
'button[daff-menu-item]',
1713
templateUrl: './menu-item.component.html',
1814
styleUrls: ['./menu-item.component.scss'],
1915
changeDetection: ChangeDetectionStrategy.OnPush,
20-
imports: [
21-
NgIf,
22-
DaffPrefixSuffixModule,
23-
],
2416
})
2517

2618
export class DaffMenuItemComponent {

0 commit comments

Comments
 (0)