I have different definitions of a module in 3 different files and I want to load them dynamically depending on user interaction. Using Kernel.load()
method only works successfully for me the first time a certain file loads. Does anyone know which method should I use to make a file load always, not regarding if it had been already loaded before?
The module contains some constants that are used in other parts of the application. Depending on user choice, one concrete module with specific values for that constants should be loaded so they will have the appropriate values.