Within my application, I have been utilizing components and a boostrapper. The main goal is to implement a datepicker that can set a global date variable. Despite exploring various options such as creating a service, utilizing rootscope, and researching solutions on stackoverflow, none of them seem to be effective.
How should I properly go about creating a shared global variable that can be accessed by all components?