【发布时间】:2019-12-25 22:14:51
【问题描述】:
我想向 *ngFor 发送数据。我从 LocalStorage 获取数据作为 JSON 对象。解析对象后,我不明白如何将完整的对象制作成数组?这是对象:
{
"Monti": {
"name": "Visa & MasterCard",
"code": "monti",
"deposit": "Free",
"depositProcessing": "Instant",
"icon": "<img src=\"//cdn.example.com/_payicons/monti.png\"/>",
"supportWithdrawal": true,
"withdrawAllowedWithoutDeposit": false,
"depositLimits": {
"currency": "EUR",
"min": 10,
"max": 5000
}
},
"Montii": {
"name": "Visa & MasterCard",
"code": "monti",
"deposit": "Free",
"depositProcessing": "Instant",
"icon": "<img src=\"//cdn.example.com/_payicons/monti.png\"/>",
"supportWithdrawal": true,
"withdrawAllowedWithoutDeposit": false,
"depositLimits": {
"currency": "EUR",
"min": 10,
"max": 5000
}
}
}
【问题讨论】:
标签: arrays json angular typescript object