Ask Your Question
2

What does error NG0900 mean when attempting to compare "object Object," and why are only arrays and iterables permitted while utilizing an observable and subscribe?

asked 2023-06-16 00:16:16 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-16 00:38:01 +0000

djk gravatar image

NG0900 is a generic error that occurs when attempting to compare objects of different types in Angular. In this case, it is likely that the code is trying to compare an object with the string "object Object," which is not possible.

Regarding the second question, observables and subscribe are part of the RxJS library, which is designed to work with collections of data. As such, it is optimized to work with iterable or array-like data structures. Other data types, such as objects or primitive values, may not be supported, which could result in errors like the NG0900.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-16 00:16:16 +0000

Seen: 11 times

Last updated: Jun 16 '23