List not populating initially

Hello everybody,

I am still working on my first ionic app and came across another issue.
I am loading data from a CouchDB using PouchDB and (to try out) populating a list with certain values from it. It does work if I manually redo the refresh or even if I change the view within the App. So obviously the code is working overall, however, it won’t show the results immediately but after some back and forth stepping or an additional, manual populating.
This is the code: http://codepen.io/anon/pen/IiwDz

Any ideas?

Obviously, CodePen can’t show this example, but try using

$scope.$apply();

instead of

$scope.refresh();

Thank you, this solved my issue!