'How to use background repeat property in angular using setElementStyle
I have started working in angular 2 weeks ago . Initially I was having a question of how to set different background images for different components then a come to know that we can use setElementstyle for this and I did the same I pass the values and required fields for that but now I want that background image to be no repeat mode.
this.renderer.setStyle(document.body, 'background-image', "url('/assets/images/background.png')");}'
I have use the above code in the component file to set the background image and it is working but now I want that the background image should not repeat.
Can Anyone guide me?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
