📅  最后修改于: 2022-03-11 15:01:43.809000             🧑  作者: Mango
@Component({
selector: 'app-myview',
template: `{{key + ' : ' + items[key]}}`
})
export class MyComponent {
objectKeys = Object.keys;
items = { keyOne: 'value 1', keyTwo: 'value 2', keyThree: 'value 3' };
constructor(){}
}