app.directive('autofocusOnInsert', function () { 'use strict'; return function (scope, elm) { elm.focus(); }; });