This project is read-only.

Can anyone tell me the point of one line of code

May 12, 2015 at 3:49 AM
Edited May 12, 2015 at 3:52 AM
First let me say this is a great template.
I am a beginner and this really helped me.
I needed something that works in IE8 and this is the only template that does.

having said that I just wan to make sure I have not missed something

In the demo page

I changed
userResource.query(function (data) {
        $scope.usersList = [];
        angular.forEach(data, function (userData) {
            $scope.usersList.push(userData);
        });
    });
to
userResource.query(function (data) {
        $scope.usersList = data;
    });
Why would you push the records one at a time?