ngSwitch converted to a filter