VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-combine-ng-class-with-ng-style/

⇱ How to combine ng-class with ng-style? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to combine ng-class with ng-style?

Last Updated : 31 Jul, 2019
The style attribute is set using ng-style. The value of ng-style is an object, which is used to refer to CSS style, which is applied to the element. Syntax:
<element ng-style="object">..</element>
Properties: Object: Object is used to return css style applied to the element. Return Value: It returns the style applied to the ng-class elements. Example 1: Output: 👁 Image
Example 2: Output: 👁 Image
Browser Support: Listed browsers support ng-class with ng-style-
  • Internet Explorer
  • Firefox
  • Google Chrome
  • Opera
  • Safari
Comment
Article Tags:

Explore