# Ng-repeat issue: not updating when $scope is changed

**URL:** <https://forum.ionicframework.com/t/ng-repeat-issue-not-updating-when-scope-is-changed/27088>\
**Category:** ionic-v1\
**Created:** [June 24, 2015, 11:07pm UTC](https://forum.ionicframework.com/t/ng-repeat-issue-not-updating-when-scope-is-changed/27088 "2015-06-24T23:07:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex77](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@alex77](https://forum.ionicframework.com/u/alex77)\
**Post date:** [June 24, 2015, 11:07pm UTC](https://forum.ionicframework.com/t/ng-repeat-issue-not-updating-when-scope-is-changed/27088/1 "2015-06-24T23:07:52Z")

</div>

I currently have an issue with my code, which is supposed to work much like any “feed”.

I call a service in my controller to initially set the $scope, much like this

```
var transactionpromise = feedService.getnewtransactions(10);
      transactionpromise.then( function(payload){
        $scope.transactions = payload.data;

      })

```

This correctly sets the scope, and the first 10 feed items are displayed.

I have a simple button at the bottom of my feed that is supposed to load the next 10 items.

```
 $scope.loadMore = function() {
    var transactionpromise = feedService.getnewtransactions(20);
      transactionpromise.then( function(payload){
        $scope.transactions = payload.data;
    
      }) }

```

This updates the scope, but the the changes aren’t displayed in the view. $apply() throws an error that the $digest cycle is already occuring, but my ng-repeat (transaction in transactions) refuses to update unless I refresh or use $state.reload();

---

<div class="post-metadata">

**Author:** ![alex77](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@alex77](https://forum.ionicframework.com/u/alex77)\
**Post date:** [June 24, 2015, 11:22pm UTC](https://forum.ionicframework.com/t/ng-repeat-issue-not-updating-when-scope-is-changed/27088/2 "2015-06-24T23:22:03Z")

</div>

Never mind I figured it out, there was a small issue in the call and my debugging consolelogs weren’t set correctly
