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.

select displaying null values from ng-options collection #10892

@gaui

Description

@gaui

When ng-options is provided with a collection containing null, it displays null (the string) as an <option> element.

Isn't this a bug?

One solution is to do, but in my opinion this is a ugly hack:

<select ng-model="foomodel" ng-options="f for f in foo | filter: '!null'"></select>

Plunker describing the problem:
http://plnkr.co/edit/ZGbkbtQ2xNQuoaowUK5z?p=preview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions