)();
- }
- return value;
+ return isSignal(value) ? value() : value;
}
diff --git a/playgrounds/angular/src/app.component.ts b/playgrounds/angular/src/app.component.ts
index 46c95922..abc9a759 100644
--- a/playgrounds/angular/src/app.component.ts
+++ b/playgrounds/angular/src/app.component.ts
@@ -1,11 +1,14 @@
+import { Location } from '@angular/common';
import {
+ afterNextRender,
Component,
ElementRef,
- HostListener,
inject,
+ Injector,
signal,
viewChild,
} from '@angular/core';
+import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import {
NavigationEnd,
Router,
@@ -13,6 +16,7 @@ import {
RouterLinkActive,
RouterOutlet,
} from '@angular/router';
+import { filter } from 'rxjs';
import { disableTransitions } from './utils/disable-transitions.ts';
interface IndicatorStyle {
@@ -27,6 +31,9 @@ interface IndicatorStyle {
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, RouterLink, RouterLinkActive],
+ host: {
+ '(window:resize)': 'onResize()',
+ },
template: `