feat(compiler): Support "in" operator in Angular templates #38560
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
area: core
Issues related to the framework runtime
core: binding & interpolation
Issue related to property/attribute binding or text interpolation
feature: insufficient votes
Label to add when the not a sufficient number of votes or comments from unique authors
feature: votes required
Feature request which is currently still in the voting phase
feature
Issue that requests a new feature
Milestone
🚀 feature request
Description
I'd like to have your opinions about supporting "in" operator in html templates. Let's say I have an object of a union type A | B. I'd like to use the 'in' operator to differentiate type.
Something like:
Here is a stackblitz
The text was updated successfully, but these errors were encountered: