Reconcile Angular.js and Bootstrap form validation styling

前端 未结 12 2082
刺人心
刺人心 2020-12-22 18:53

I am using Angular with Bootstrap. Here is the code for reference:

12条回答
  •  没有蜡笔的小新
    2020-12-22 19:52

    Use Bootstrap's "error" class for styling. You can write less code.

    
      
    Required

    EDIT: As other answers and comments point out - in Bootstrap 3 the class is now "has-error", not "error".

提交回复
热议问题