0
我有一維數組(人員列表)。我想在角2所述的陣列,以顯示以矩陣形式這個數據看起來像這樣:角度2:以矩陣格式顯示陣列
[
{Id: 1, FirstName: 'Michael', LastName: 'Jackson'},
{Id: 2, FirstName: 'Aamir', LastName: 'Khan'},
{Id: 3, FirstName: 'Meg', LastName: 'Ryan'},
{Id: 4, FirstName: 'Raj', LastName: 'Kumar'},
{Id: 5, FirstName: 'Michael', LastName: 'Jordan'},
{Id: 6, FirstName: 'Serena', LastName: 'Williams'},
{Id: 7, FirstName: 'Rathi', LastName: 'Agnihotri'},
]
輸出需要是:
Michael Jackson Aamir Khan Meg Ryan
Raj Kumar Michael Jordan Serena Williams
Rathi Agnihotri
我怎樣才能實現這一點?
道歉不完整後,岡特。更新了問題 –
https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html,https://angular.io/docs/ts/latest/guide/displaying-data。 HTML SO不是一堆代碼猴子。你的問題應該顯示你的努力。 –