Thanks to visit codestin.com
Credit goes to github.com

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

apiCheck warnings when using an object for select options #107

Open
@eliagentili

Description

@eliagentili

My server API return an object like this that i need to use for populating my select input:

{
  'iron_man': 'Iron Man',
  'captain_america': 'Captain America',
  'black_widow': 'Black Widow',
  'hulk': 'Hulk',
  'captain_marvel': 'Captain Marvel',
}

i can handle this format with ngOptions, but even if this works, i get a warning in dev tools from apiCheck.

You can see an example here (open your dev tools!):

I can fix that with a pull request simply changing the apiCheck for handling also objects instead of only arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions