Added ngSwitch for type.