I need to have a set of Global Variables
in a class, and need to access it from other classes. I have the following problems, can someone help me ?
1.) What type of class should i add ? is it a View
? Can someone show an example ?
2.) How can i set values to the variables in this class from my Controller
and View
classes ?
3.) How can i retrieve the values of these variables from this class (global variable
class) ?
note: I know how to add it to the app.js
and write/read from other classes. But i want to have a separate class for global variables.