Both the NgStyle and NgClass directives can be used to conditionally set the look ... getColor(country) { (2) switch (country) { case 'UK': return 'green'; ...
確定! 回上一頁