ConstsetData({
'$operationdata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $operationdata.foo
'$globaldata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $globaldata.foo
'$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
})
This operation assigns the specified properties to the specified data targets.