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