 <p>You need to set the value of <code>$scope.objectData[key]</code> to an object before you can add more keys to it.</p> <pre><code>$scope.objectData[key] = {}; $scope.objectData[key]['digits'] = 'foo'; </code></pre>