Hi Vinu,

The correct way to handle this is to create a service and inject that 
whenever you need it. But if you really want to have a global, just create 
one in the JS global scope, and use it where you need it. Typescript will 
complain, and you need to define it in each file you are going to use it, 
but it will work nevertheless. 

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.

Reply via email to