I wrote a directive for input focus & blur
angular .module('app') .directive('input', ['$filter', function($filter) { return function(scope, element, attrs) { if (element && element[0] && element[0].placeholder) { scope.placeholder = element[0].placeholder; element.bind("focus", function() { console.log(scope.placeholder); element[0].placeholder = ""; }); element.bind("blur", function() { element[0].placeholder = $filter('translate')(scope.placeholder); }); } }; }]); I want same functionality for text area also. But don't wanted to write an other directive. How I can do this?