Is that possible that I get value from localStorage and use it in page scss file?
Logic:
- I have saved name of background file in local storage and I can access it in my ts file as
background - Now this
backgroundvariable is pointed to my local image file such asassets/bg/01.jpg - I wish to use this
backgroundvariable in myscssfile in order to have dynamic background (in case in future i changed the value in my local storage)
Is that possible?
1 post - 1 participant