Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): Updates error to use RuntimeError code
This updates the iterable differ error to use more up-to-date error codes.
- Loading branch information
1 parent
21cce3a
commit 3a72e96
Showing
5 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters