How Access Global Variable


#1

How to create a Global Variable in AppComponent and access the global variable in all components.


#2

That’s not a good place to do that. Define a service instead and inject it everywhere needed.


#3

thank you i will try that