The Question : 676 people think this question is useful What is wrong with my Angular code? I am getting: HTML The Question Comments : angulartutorial.net/2017/12/… The Answer 1 1514 people think this answer is useful Angular version 2,…,9 provides several ways to add classes conditionally: type one type two and multiple option: type three