각도를 사용하고 있으며 ng-switch를 사용하여 문자열이 비어 있는지 확인하고 싶습니다. 다음 코드는 나를 위해 작동하지 않는 것 같습니다.ng-switch on empty string
<div ng-switch on="foo">
<span ng-switch-when="">This string is empty</span>
<span ng-switch-default>This string is not empty</span>
</div>
이 문제에 대한 도움을 주시면 감사하겠습니다.
가능한 복제 ([Angular.js NG 스위치 --- 테스트 값은 비어 있거나 미정 인 경우] http://stackoverflow.com/questions/25453689/angular-js-ng-switch-testing- if-value-is-empty-or-undefined) –