您好我正在尝试迭代提供的对象并想要在DOM中打印密钥
obj = {
"approved" : ["1231312","alkjdkasjld"],
"rejected" : ["1231312","alkjdkasjld"]
}
我正如下面那样重复打印已批准和被拒绝的
<template ngFor let-key [ngForOf]="obj">
{{key}}
</template>
但它不起作用,请帮忙 Plunker https://plnkr.co/edit/X9QN54A36qWqLJKYmARE?p=preview