angular-strap

Good way to dynamically open / close a popover (or tooltip) using angular, based on expression?

烂漫一生 提交于 2019-11-26 13:37:28
问题 I have a form that is wired into angular, using it for validation. I am able to display error messages using ng-show directives like so: <span ng-show="t3.f.needsAttention(f.fieldName)" ng-cloak> <span ng-show="f.fieldName.$error.required && !f.fieldName.$viewValue"> This field is required. </span> </span> .. where f is the form, and t3 comes from a custom directive on the form which detects whether a submission was attempted, and contains functions for checking the validity of fields. What I