I would like to be able to display some overlay when you focus on an img element. The problem is that the elements are populated from the attributes of an angularjs ng-repeat I would like only a specific img to enable a specific text.
The below example does not work, the ng-class variable resolves correctly though.
<div class="myClass" ng-repeat="i in items">
<span class="class-img-wrapper">
<img ng-src="{{i.img}}" class="class-img-view" ng-init="{{i.name}}_focused = false" ng-focus="{{i.name}}_focused = true" ng-blur="{{i.name}}_focused = false"/>
<span ng-class="{classOverlayShow: {{i.name}}_focused}" class="class-img-overlay">
{{i.name}}
</span>
</span>
</div>
doesn't workreally isn't very informative. We can't see data, or controller, or know what is or isn't happening....show more code and create a demo that replicates problemdoesn't worknow has a fiddle :)ng-classto do based on name? Not making sense without explanation. No idea what_focusedis about. Right side ofng-classneeds to resolve to true/false