Hey! Thank you for your message and sorry for the inconvenience caused.
Basically, getCopy() method could be anything whose result you want to set globally. In my case, it is a simple method which gets content based on the logged in user type.
For eg:
It doesn't work for me, i don't have a getCopy, what this function does? could you please help me or get it touch with me!
You can use localstorage for this:
Thank you for the alternative, however what if the user has disabled his localStorage? ;)
I did not know you can disable it
Hey! Thank you for your message and sorry for the inconvenience caused.
Basically, getCopy() method could be anything whose result you want to set globally. In my case, it is a simple method which gets content based on the logged in user type.
For eg: