Thanks Sander, but I don't quite understand. Are you suggesting I should be using typescript in my project and by doing so I could update this global variable from my angular controller ?
Regards, Bjarni On Monday, July 24, 2017 at 3:31:58 AM UTC, Sander Elias wrote: > > Hi Bjarni, > > This is more a typescript issue as it is an angular one. > try this in the code you want to use your global: > > declare var GlobalVariable:string; // try to avoid any, but if you have > to, you can use any. > > Regards > Sander > > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
