I'm using `Angular 6`.

I have to set background image of div from template and for that, I'm doing

```
<div class="full-page-background" [style.background-image]="'url(./assets/img/bg5.jpg)'">
</div>

```

But this gives **404** not found.

I tried same path with `<img>` tag

```
<img src="./assets/img/bg5.jpg" alt="">

```

and it's working fine.

**1. Why it's not working with style element?**  

**2. How to set background image of div?**