Using ngMessage for input type number

前端 未结 1 1468
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 02:18

How to leverage the ng-message for number type? Does ngMessage support max and min attributes? if so how can it be done?

DEMO LINK

Example link from angular

相关标签:
1条回答
  • 2020-12-22 03:10

    ngMessages was officially introduced in version 1.3.0-beta.8 as a module, so you need to fix the following:

    1. Use version 1.3.0-beta.8 or later (the latest is 1.3.0-beta.9 right now).

    2. Include angular-messages[.min].js in your HTML (it is a separate script).

    3. Declare ngMessages as a dependency of your module/app.


    See, also, this short demo.

    0 讨论(0)
提交回复
热议问题