Inline edit directive for AngularJS