Editing in place with AngularJS directive