I was looking to add edit-in-place functionality to an Angular app I was working on. I found a few libraries but it seemed like overkill for what should be an extremely small directive. app.directive('editAction', function() { return { restrict: "A", link: function($scope, element, attrs) { element[0].focus(