📜  ngfor 对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.087000             🧑  作者: Mango

代码示例3
@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(){} }