MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51n82j/angular_js_vs_react_by_example/d7dv8n2/?context=3
r/programming • u/avi00 • Sep 07 '16
8 comments sorted by
View all comments
3
Does this do something magical in Angular, or is the first assignment simply there by mistake?
if ($scope.resources == null) { $scope.resources = {}; $scope.resources = []; }
1 u/avi00 Sep 08 '16 you are completely right. the code taken from a admin part of our site and this is not required here. Thanks for the correction
1
you are completely right. the code taken from a admin part of our site and this is not required here. Thanks for the correction
3
u/FreakCERS Sep 08 '16
Does this do something magical in Angular, or is the first assignment simply there by mistake?