Use Angular $parse service to assign values in $scope

Simple variable assignment in _resolve works correctly only with scalar variables. When the synchronized value is referenced as "name['key']" or "a.b.c[10]", then $watch tracks the changes in $scope.name['key'] or $scope.a.b.c[10]", but updates from Firebase would reflected to $scope["name['key']"] or $scope["a.b.c[10]"].
The modified code uses Angular $parse to assign the corrected variable within the $scope even if it belongs to an object or array.