File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9- import { Injector , Type } from '@angular/core' ;
9+ import { Injector , isSignal , Type } from '@angular/core' ;
1010import { Subscription } from 'rxjs' ;
1111
1212import { ComponentNgElementStrategyFactory } from './component-factory-strategy' ;
@@ -240,7 +240,8 @@ export function createCustomElement<P>(
240240 inputs . forEach ( ( { propName, transform} ) => {
241241 Object . defineProperty ( NgElementImpl . prototype , propName , {
242242 get ( ) : any {
243- return this . ngElementStrategy . getInputValue ( propName ) ;
243+ const inputValue = this . ngElementStrategy . getInputValue ( propName ) ;
244+ return isSignal ( inputValue ) ? inputValue ( ) : inputValue ;
244245 } ,
245246 set ( newValue : any ) : void {
246247 this . ngElementStrategy . setInputValue ( propName , newValue , transform ) ;
You can’t perform that action at this time.
0 commit comments