Skip to content

Signal Inputs Not Supported by Angular Elements #57755

@Char2sGu

Description

@Char2sGu

Which @angular/* package(s) are the source of the bug?

elements

Is this a regression?

No

Description

When inputs are defined with the new input function in components that are used as Angular Elements, there would be a runtime error saying the input is not a function.

@Component({
  selector: 'app-comp',
  standalone: true,
  template: `
  {{ value() }}
  `,
})
export class Comp {
  value = input<string>();
}
ERROR TypeError: ctx.value is not a function

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-j5axpq?file=src%2Fmain.ts

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions