Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Feature Request: ng-message referencing input's min/max #10037

Closed
adrianandreias opened this issue Nov 13, 2014 · 2 comments
Closed

Feature Request: ng-message referencing input's min/max #10037

adrianandreias opened this issue Nov 13, 2014 · 2 comments

Comments

@adrianandreias
Copy link

Implement the ability to write a generic ng-message in the ng-messages-include html that would reference min/max attributes of the referred input.
Something like:

The value must be in range {{ field.min }} to {{ field.max }}.

@caitp
Copy link
Contributor

caitp commented Nov 13, 2014

You should be able to interpolate your messages, so isn't this technically already possible? The trouble with building this into ngMessages, is that the min/max minlength/maxlength validators don't really record that data anywhere --- they record it locally only. I think it would make a mess of things to change that.

@Narretz
Copy link
Contributor

Narretz commented Mar 23, 2016

Dupe of #9849

@Narretz Narretz closed this as completed Mar 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants