我正在使用Angular,我想使用ng-switch检查字符串是否为空.以下代码似乎对我不起作用.
<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>
Run Code Online (Sandbox Code Playgroud)
任何帮助都将不胜感激.