Yes you can create a custom directive and add focus event on that element.
Below i had create a custom directive "custom-on-focus" with focus and blur event attached on that directive.
Here goes your template
<div ng-init="selectedTiles=[1,2,3,4,5]">
<input type="text" custom-on-focus ng-repeat="tile in selectedTiles"/>
</div>
Here is the custom directive code
<script>
angular.module('demoApp')
.directive('customOnFocus',[function(){
return {
restrict : 'A',
link : function (scope,element,attrs) {
var targetElem = element[0];
targetElem.addEventListener("focus", focusHandler);
targetElem.addEventListener("blur", blurHandler);
function focusHandler(event) {
// THINGS TO DO ON FOCUS
// for example i am changing background color
event.target.style.background = "pink";
}
function blurHandler(event) {
//THINGS TO DO ON BLUR
// reseting background color
event.target.style.background = "white";
}
// Its very important to remove these events listener
// on scope destruction else it will cause memory leaks
scope.$on('$destroy',function(){
targetElem.removeEventListener('focus',focusHandler);
targetElem.removeEventListener('blur',blurHandler);
})
}
}
}]);