angular / latest / errors / ng02200.html

NG02200: Cannot find a differ for object in ngFor

Description

NgFor could not find an iterable differ for the value passed in. Make sure it's an iterable, like an Array.

Debugging the error

When using ngFor in a template, you must use some type of Iterable, like Array, Set, Map, etc. If you're trying to iterate over the keys in an object, you should look at the KeyValue pipe instead.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/errors/NG02200