Closed . This question is
opinion-based . It is not currently accepting answers.
Want to improve this question? Because this question may lead to opinionated discussion, debate, and answers, it has been closed. You may edit the question if you feel you can improve it so that it requires answers that include facts and citations or a detailed explanation of the proposed solution. If edited, the question will be reviewed and might be reopened.
Which approach to passing static string values as inputs to an Angular component is considered a better practice and is more performant?
Pass input via an attribute
<some-component color="red" />
or pass it explicitly
<some-component [color]="'red'" />
Does either of them result in fewer CD checks, ngOnchanges calls, or has DOM access advantages?