Use Angular @Input / input() from a mixin

Discussão em 'Angular' iniciado por tris, Julho 8, 2025.

  1. tris

    tris Guest

    If I put a @Input() property / input() signal to a mixed in class the Angular compiler isn't aware of it / states, that the property doesn't exist, if bound in the template.

    As officially stated by the Angular team this use-case doesn't seem to be supported: https://github.com/angular/angular/issues/62522.

    Is there any nice workaround / solution to accomplish this anyway? I really love the idea of mixins and would like to make use of it for components with input properties.

    Continue reading...

Compartilhe esta Página