3 ms·
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) { c
by cpprototypes 13y ago
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;
...