como mantener una variable global
https://stackoverflow.com/questions/43991306/angular-4-5-6-global-variables/43991457