I am new to working with angularJS and I am attempting to set different backgrounds for various pages. Unfortunately, I am running into some challenges because my view is connected to elements in my index.html.
index.html
<div class="top-container">
<div class="navigation" >
<nav>....</nav>
</div>
<div ui-view="topContent"></div>
</div>
The ui-view inserts new content for each page that is linked to the navigation element. Currently, I have a single background image for the entire site using the following code:
.top-container{
background-image: url('bg.jpeg');
}
Do you have any suggestions on how I can change the background for different pages? Is there a way to pass a variable or something similar to change the background image based on the specific page I am currently viewing?
Thank you