How to show form input errors using AngularJS UI Bootstrap tooltip?

前端 未结 5 1062
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 05:16

For example I have the form where I am showing form input errors.

I need to show red badge (with \'hover to show errors\') near input label if there are some errors.

5条回答
  •  -上瘾入骨i
    2020-12-08 05:35

    @pixelbits answer is great. I used this instead:

      

    The technique is ui-bootstrap's tooltip and set the tooltip text to '' when valid.

    http://jsbin.com/ditekuvipa/2/edit

提交回复
热议问题