In Angular.js templating, I need to test if a value is undefined or empty.... I am not sure how to do this since ng-switch-when tests for expressions in strings. I
ng-switch-when
ng-switch allows expressions, you can use placeholder, as such:
I am set to zero or undefined?! This string is not empty
For more info: ng-switch on empty string
You usually do it within controller(see answer#1 in linked thread).