Reputation: 2562
I have frond end built using angularjs. I have declared the background image for body of the index.html
page (its same for whole website).
whenever I go to the new url, a view will be displayed in ng-view
. currently I am planning to change the background
of only login page.
Whenever i go to the url localhost:3000/login
, background (of body) should change for only that page. for rest of the page it should remain same.
Is there anyway to do it?
Edit: Right now I have this code in my app.scss
body {
padding-bottom: 15px;
@include background-image(linear-gradient(#c3c3c3, white 350px));
}
And its common for all the pages. When i load the login page, still this background styling will be displayed(which is inherited). Which I want to remove (background: none) for only login page. Hope it clarifies my question.
Upvotes: 0
Views: 75
Reputation: 303
Try:
ng-style="{'backgroundimage':'url(typeUrlHere)'}">
inside the desired tag.Upvotes: 1