2

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 doc

0

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.