Angular control flow fails during certain cases #55882
Labels
area: core
Issues related to the framework runtime
core: control flow
Issues related to the built-in control flow (@if, @for, @switch)
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
Which @angular/* package(s) are the source of the bug?
common
Is this a regression?
Yes
Description
I have a if else block in my html page which was working fine until I upgraded to angular 17 control flow
@if(!isMobile){}
this is how I added the condition, the condition is to show some html based on a boolean variable (which is set using a behaviorsubject). This fails while reloading the page. but when I add an empty @else block, this works without any issue
any idea why this happens?
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: