Attribute inputs vs explicit inputs in Angular

Discussão em 'Angular' iniciado por Lukasz Prus, Novembro 27, 2025.

  1. Lukasz Prus

    Lukasz Prus Guest

    Which approach of passing static string inputs is more performant/recommended in Angular?

    Attribute inputs:

    <some-component color="red" />


    or explicit inputs:

    <some-component [color]="'red'" />


    ?

    Does either of them result in fewer CD checks, ngOnchanges calls, or have DOM access advantages?

    Continue reading...

Compartilhe esta Página