Since the computed was returning view-specific non-semantic CSS class names, we moved it to a custom binding handler. It would be even simpler if you could rename the CSS class names to something more semantic like "male" and "female" and just bind directly to it without the need fo the binding handler to do the translation.