Answer the question
In order to leave comments, you need to log in
How to properly use global variables in SPA?
I have an idea for a small browser-based text quest, I want to make it in angularjs in SPA format.
During the implementation, I ran into such a question - how to use global variables correctly. For example, there are character characteristics that can change throughout the quest.
What is the correct way to use variables for this, so that they can be accessed from any controller with the ability to change them?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question