I would follow a directive or a set of directives that you can show when focusing or blurring or hovering other elements on the mouse. Depending on your implementation, you can leave with one directive that opens onFocus or onBLur. Angular 1.2 supports ng-focus, ng-mouseover and ng-blur, which you can use to do something like this.
<div class="check-thing"> <button class="checkmark" ng-mouseenter="showModal = true" ng-mouseleave="showModal = false"></button> <modal ng-show="showModal" model="modal-model"></modal> </div>
Then simply indicate that the form in the directive fills the two-way connected modal model or launches a callback when the user clicks the OK button that the controller expects. Perhaps it would be even better to make the whole control thing a directive and use them in a repeat.
Beware , none of this will be very friendly on the tablet or phone, as they do not always support freezes.
source share