I have the following in a controller:

```
 Restangular.all('foos').getList().then(
    function(foos) {
        $scope.foos = foos;
    });

```

In an HTML page, I am able to do the following:

```
<div ng-repeat="foo in foos | orderBy:'fooName'">

```

I want to move the ng-repeat to a directive, so I have the following in a directive:

```
app.directive('interactionFoos', function(){

return {
    restrict: 'A',
    scope : false,
    link: function($scope, $element, $attrs) {

        //console.log("*** size: " + $scope.foos.length);
    }
}

});

```

And in the HTML I will have:

```
<div interaction-foos></div>

```

In the directive, I am getting undefined for $scope.foos.
As a test, in the controller, I hard coded: $scope.test= 'foobar'.
Then, in the directive, I replaced the log line with the following and it printed 'foobar':

```
console.log("*** test: " + $scope.test);

```

I do not know why $scope.test is working as I expect, but $scope.foos is not?