in ngx-admin, there is
style.background-image
attribute,
which library parses this style.background-image ?
<div class="cover" style.background-image="url('{{track.cover}}')"></div>
in ngx-admin, there is
style.background-image
attribute,
which library parses this style.background-image ?
<div class="cover" style.background-image="url('{{track.cover}}')"></div>
This method of applying style is know as applying the style using attribute binding and Angular itself parses this. In Angular we normally bind the component properties in our template, but we can bind attributes too in our template.
Here
background-imageis an attribute of style which is getting bound to cover property of the track object.