You can use [attr.data-index] directly to save the index to data-index attribute which is available in Angular versions 2 and above.
確定! 回上一頁