Another question about background in continuation.
What if I’m using ion-nav-view, ion-view and ion-content and want the same background for all views, but I want the background to be assigned dynamically, much like the weather app example.
Should I assign the background to each ion-content separately or is there a way to assign a background to ion-nav-view?
Right now, I’m using a directive to dynamically control the views in each tab separately. I can also think of assigning an abstract tab and assigning bg-image there. Just wanted to know if it can be done in ion-nav-view.
I THINK I tried apply a background class to ion-nav-view. If I remember correctly it didn’t work. I had to apply it to each ion-view. Feel free to try though and let us know.
hey i found this simple but still its bit confusing…why cannot i place imge url in body tag directly…why do we .scroll-content for changing background…
and even the background hides as per new task are displayed (i used the same todo app that is described) so how can i make it visible behind all the tasks
apologies
i did not specify it correctly to you
the code you posted works only with "background-color:#0072bc"
whereas when i use “background-image:url(“img/bgimg.png”);” it doesn’t work
and i have added the code in ion-content
yes it is correct sir.
I ve tried it multiple times but i got disappointed by it.
So after multiple cross checking,i found out that most popular apps do have a white background and its customization is done on all other aspects.
So its fine.
IONIC is still the best.
Any update on how to load a dynamic image for all the ion-content ?
For now I have a directive on each view to load the background image. Was thinking if there was a smart way to apply the same image for all of them without having to write it on all the templates.
I have the same problem.If background-image:url(…) prop define in style.css it doesn’t work.
It only works if set image tag in template view/Path to image the same.