0
我想顯示對離子/角我的數據使用此hashmap HashMap的,我的數據是非常簡單的:怎麼辦NG重複使用的HashMap
設置方法:
tables.set(1, "string one");
tables.set(2, "number one");
<ul>
<li ng-repeat='(key, value) in tables'>
<span>Key: {{key}}, value: {{value}}</span>
</li>
</ul>
問題是我不能讓它在ng-repeat上工作來顯示所有的關鍵和價值。