We can get the index of the item we are looping over by assigning index to a variable in the NgFor expression. Listing. Listing 2. main.ts. TypeScript. Copy ...
確定! 回上一頁