Skip to content

Support safe function calls in templates #42298

@AndrewKushnir

Description

@AndrewKushnir

This ticket is a followup from PR #41911, which introduces safe keyed read expressions. We should also consider adding a support for safe function calls in templates such as:

{{ someObj.method?.() }}

See #41911 (comment) (and related discussion in PR #41911) for additional information.

Metadata

Metadata

Assignees

Labels

area: compilerIssues related to `ngc`, Angular's template compilercompiler: parserfeatureLabel used to distinguish feature request from other issuesfeature: in backlogFeature request for which voting has completed and is now in the backlogstate: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions