Angular has released the new '@switch' block syntax similar to Javascript
The
@switchblocks displays content selected by one of the cases matching against the conditional expressionThe
@defaultblock is optional and can be omitted. If no@casematches the expression and there is no@defaultblock, nothing is shown@switchdoes not have fallthrough, so you do not need an equivalent to a break or return statement.

Top comments (0)