Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

renderer.setElementStyle

Renderer is deprecated, so Renderer.setElementStyle was changed to Renderer2.setStyle

ex:
```
this.renderer.setStyle(this.ele.nativeElement, 'background-color', this.customColor)
```
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+5 =