An angular directive to make an element resizable