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

Allow global configuration of the default value for ngMessages' multiple #11797

Open
realityking opened this issue May 4, 2015 · 2 comments
Open

Comments

@realityking
Copy link
Contributor

In a large application with hundereds of form fields it's rather tedious to always remember to add ng-messages-multiple to get a consistent expierence for users.

It would be great if a default could be set globally. This might entail changing ng-messages-multiple to accept an expression (or a string) to allow disabling it when the default is to show multiple messages.

@Narretz
Copy link
Contributor

Narretz commented May 5, 2015

Sounds reasonable. Feedback / PR welcome.

@kentcdodds
Copy link

I think this feature would definitely be handy.

I want to mention angular-formly. Disclosure, it's my library, so feel free to take this with a grain of salt. But making this happen with angular-formly would be trivial using the wrappers feature. I threw together a quick example. Hopefully this is more helpful than spammy.

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