在角上迭代物体
interface Dictionary { [ index: string ]: string }
myDict={'key1':'value1','key2':'value2'}
<div *ngFor="(#key, #value) of myDict">{{key}}:{{value}}</div>
<div *ngFor="#value of myDict">{{value}}</div> <div *ngFor="#value of myDict #key=index">{{key}}:{{value}}</div>
茅侃侃