File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import {
2525 ɵisViewDirty as isViewDirty ,
2626 ɵmarkForRefresh as markForRefresh ,
2727 OutputRef ,
28+ isSignal ,
2829} from '@angular/core' ;
2930import { merge , Observable , ReplaySubject } from 'rxjs' ;
3031import { switchMap } from 'rxjs/operators' ;
@@ -185,7 +186,9 @@ export class ComponentNgElementStrategy implements NgElementStrategy {
185186 */
186187 private resetProperties ( ) {
187188 this . componentFactory . inputs . forEach ( ( input ) => {
188- this . initialInputValues . set ( input . propName , this . componentRef ! . instance [ input . propName ] ) ;
189+ let inputValue = this . getInputValue ( input . propName ) ;
190+ inputValue = input . isSignal && isSignal ( inputValue ) ? inputValue ( ) : inputValue ;
191+ this . initialInputValues . set ( input . propName , inputValue ) ;
189192 } ) ;
190193 }
191194
You can’t perform that action at this time.
0 commit comments