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.

ngList is misstaken for the list attribute #9132

@jimmywarting

Description

@jimmywarting

list attribute is used on input elements that can show auto completion in combination with <datalist>
You could expect (without reading the docs) that ngList would do some magic auto completion awesomeness that would generate a <datalist> with a unique id to match the input. And show some suggestion when you focus on the field.

I would suggest we remove the ngList and when multiple attribute is present it will return the value as an array
the new (working?) spec says that "multiple" attribute is supported on all inputs but are only used for <select> file, email and range inputs.

Then maybe later we could build some awesome auto completion around the ngList in the future? 👍

I think we should honor multiple attribute more
I wouldn't like the fact that I would have to use ng-list on email to get an array from the model. multiple attribute must also be there to support the native behavior... so why not only use multiple?

<input multiple ng-model="websites"> default delimiter to , (like email)
<input multiple ng-model="websites"  ng-model-option="{delimiter: "|"}> changed delimiter to | 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions