I am trying to share some data between AngularJS controllers. Also I get the data through http request. When I access the data from controller, it is null and later (if manually refresh through UI), the data is available. I am guessing the issue is very similar to [here](https://stackoverflow.com/questions/10179488/the-view-is-not-updated-in-angularjs)
But whatever I tried in my case didn't work. Please see the fiddle

<http://plnkr.co/edit/6SkzXK?p=preview>

so, in controller I get the data through

```
//myService.setName(); //commented as it breaks the code

```

which sets the value in service and access through `getName()`

it most likely could be solved through, `$rootScope.$apply` , as in the above link but I couldn't make it work.