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.

Bind ng-options to ES6 Map #11753

Open
Open
@bcherny

Description

@bcherny
let map = new Map()
map.set(1, 'foo')
map.set(2, 'bar')
map.set(3, 'baz')
<select ng-model="myModel" ng-options="map"></select>

this allows for non-string model values, without resorting to a custom $parser.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions