I want to make my navbar dynamic. I want to change it's background image.
I try this:
<b-navbar toggleable="lg"v-bind:style="headerStyle">
this.headerStyle = {
backgroundImage: 'url("../../assets/img/sky-views/3.png") !important'
}
When I do that and inspect it I see this:
And there is no image, it cant find the image.
But when I add a class to element and give same path to class it show the image.
<b-navbar toggleable="lg" class="header-wrapper">
...
<style lang="scss">
.header-wrapper {
background-image: url("../../assets/img/sky-views/3.png") !important;
}
</style>
When I inspect I see:
What is the point I miss? Why the result path is different? How can I make it properly?