This is a bad example. Why do that when you could just bind directly:
<span>{{ someValue }}</span>
And in the controller JS file do switch (foo) {
case 'bar':
scope.someValue = 'hello';
break;
...