Now you can see output, it will add "active" class because, itFavorite variable is true. Example 3: NgClass with ternary. You can see bellow ...
確定! 回上一頁