Skip to content

Commit 8dd0976

Browse files
committed
refactor: minor cleanups
1 parent f2151e6 commit 8dd0976

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.ts

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export class DropdownToggleDirective implements AfterViewInit {
120120
styleUrls: ['./dropdown.component.scss'],
121121
exportAs: 'cDropdown',
122122
providers: [DropdownService],
123-
124123
hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }]
125124
})
126125
export class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy, OnInit {

projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ describe('OffcanvasToggleDirective', () => {
2020

2121
beforeEach(() => {
2222
TestBed.configureTestingModule({
23-
imports: [NoopAnimationsModule, OffcanvasToggleDirective],
24-
providers: [OffcanvasService, TestButtonComponent]
23+
imports: [NoopAnimationsModule, OffcanvasToggleDirective, TestButtonComponent],
24+
providers: [OffcanvasService]
2525
});
2626
fixture = TestBed.createComponent(TestButtonComponent);
2727
component = fixture.componentInstance;

projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class TabsListComponent {
9191
});
9292
});
9393

94-
tabsServiceEffect = effect(() => {
94+
readonly tabsServiceEffect = effect(() => {
9595
const activeItemIndex = this.tabs().findIndex(
9696
(tab) => untracked(tab.isActive) && untracked(tab.itemKey) === this.tabsService.activeItemKey()
9797
);

0 commit comments

Comments
 (0)