Currently, I am working on my angularjs ui-route project and have placed a variable called clientid
in the .run()
core function to store it in $rootScope
.
However, there comes a point where I need to access this stored variable within the .config()
core.
Unfortunately, I am aware that I cannot directly use the $rootScope
service in the .config()
core.
Therefore, my question is how can I pass the clientid
variable from $rootScope
to .config()
? Is there another service that I could utilize for this purpose?