Refresh $rootScope

How do I refresh a rootscope?


As Justin Bieber would say “What do you mean?”

I would like, with a button, refresh my data.

so first

  1. create the html for the button
  2. find out how you can connect your button to your controller
  3. what is your data? is it a serivce? is it een database?
  4. search the forum on how to refresh the data (most common way is via event)

please show us code formatted (html / controllers / services) otherwise we (the community) can’t help you.

Also I would suggest to read on how AngularJS works and design patterns

good luck!