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

ng-messages: provide the input-element attributes to be used inside of the ng-message template #10319

Closed
@johannesjo

Description

@johannesjo

Would nice to be able to to something like this:

<div ng-message="minlength">Your input should be at least {{attrs.minlength}} characters long</div>

Or even more sophisticated:

<div ng-message="max"
        ng-if="attrs.type='date'">'The date provided should be no later than the {{attrs.max  |date}}</div>

If interested, I could try to provide a pull-request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions