ama icon indicating copy to clipboard operation
ama copied to clipboard

Angular app wide data / variables

Open ghost opened this issue 7 years ago • 0 comments

Say you have an Angular App and you run a GET to retrieve a Users Profile from a server.

You want to be able to access this User Data from any component / directive / service within the Application.

Would you have any pointers on allowing this User Data to be accessible throughout and remain editable?

I've considered using module.value() but then there is $rootScope and also house the data in a Service.

ghost avatar Mar 14 '17 14:03 ghost