I'm working on an Angular JS website that pulls data from an API to create a dynamic CSS class. This class will be used to format other data being displayed on the page.
Is there a way for Angular JS $scope data to be generated in the Controller while processing the API data, and then applied to create a CSS class in the .html view? Unfortunately, using $scope data inside HTML 'STYLE' tags is not possible due to bracket characters ('{' and '}') being treated as 'STYLE' characters, preventing the expansion of $scope variables.
UPDATE: The previous comments were based on experiences with Visual Studio 2013 IDE where Angular syntax was flagged as an error. By following the syntax demonstrated by Valentyn below, it is possible to define dynamic attributes within a CSS class successfully.