mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
17 lines
537 B
Markdown
17 lines
537 B
Markdown
|
|
@name Missing Iterable Differ
|
||
|
|
@category runtime
|
||
|
|
@shortDescription 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
|
||
|
|
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](/api/common/KeyValuePipe) instead.
|
||
|
|
|
||
|
|
<!-- links -->
|
||
|
|
|
||
|
|
<!-- external links -->
|
||
|
|
|
||
|
|
<!-- end links -->
|