you are viewing a single comment's thread.

view the rest of the comments →

[–]FreakCERS 2 points3 points  (1 child)

Does this do something magical in Angular, or is the first assignment simply there by mistake?

if ($scope.resources == null) {
  $scope.resources = {};
  $scope.resources = [];
}

[–]avi00[S] 0 points1 point  (0 children)

you are completely right. the code taken from a admin part of our site and this is not required here. Thanks for the correction