Is there an ng-model and input type email bug?

后端 未结 4 1439
执笔经年
执笔经年 2021-02-07 05:58

Is there something special going on with input type=\"email\" and ng-model attribute? If the input is email, then the model doesnt update. If I change the input type to text, nu

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 06:35

    It's not a bug, it's only update when we type correct email address format for email validation. Add this attribute ng-model-options="{'allowInvalid': true}" to allow invalid email input.

提交回复
热议问题