````html
````
````javascript
angular.module('myApp', [])
.directive('rebindDraggableDirective', function() {
return function(scope, element, attrs) {
if (scope.$last){
// iteration is complete, do whatever post-processing
// is necessary
$(element).draggable(...);
}
};
});
````