Instead you use a directive to add, remove, or change class names. In your mark-up, you add the directive to the element: <span ngClass=“{ hasClass: ' ...
確定! 回上一頁