You can set the class of an element dynamically using ngClass directive. ... From the above code, class red or blue will be set if the conditions ...
確定! 回上一頁