Skip to content

Commit 310cebe

Browse files
committed
chore(migration): rename the afterRender lifecycle hook to afterEveryRender
1 parent cb3314b commit 310cebe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BreakpointObserver } from '@angular/cdk/layout';
22
import {
33
AfterContentInit,
4-
afterRender,
4+
afterEveryRender,
55
Component,
66
computed,
77
contentChild,
@@ -23,11 +23,11 @@ import { ThemeDirective } from '../shared';
2323
// todo: workaround - use <c-container> component directly in template
2424

2525
@Component({
26-
selector: 'c-navbar',
27-
templateUrl: './navbar.component.html',
28-
imports: [NgClass, NgTemplateOutlet],
29-
hostDirectives: [{ directive: ThemeDirective, inputs: ['colorScheme'] }],
30-
host: { '[class]': 'hostClasses()', '[attr.role]': 'role()' }
26+
selector: 'c-navbar',
27+
templateUrl: './navbar.component.html',
28+
imports: [NgClass, NgTemplateOutlet],
29+
hostDirectives: [{ directive: ThemeDirective, inputs: ['colorScheme'] }],
30+
host: { '[class]': 'hostClasses()', '[attr.role]': 'role()' }
3131
})
3232
export class NavbarComponent implements AfterContentInit, OnDestroy {
3333
readonly #breakpointObserver = inject(BreakpointObserver);
@@ -79,7 +79,7 @@ export class NavbarComponent implements AfterContentInit, OnDestroy {
7979

8080
readonly computedStyle = signal<string>('');
8181

82-
readonly afterNextRenderFn = afterRender({
82+
readonly #afterEveryRenderFn = afterEveryRender({
8383
read: () => {
8484
const expand = this.expand();
8585
if (typeof expand === 'string') {

0 commit comments

Comments
 (0)