Now our code supports both kinds of equality-checking, and our test passes.Checking by value is obviously a more involved operation than just checking a reference.Sometimes a lot more involved. Walking a nested data structure takes time, and holding a deep copy of it also takes up memory. That’s why Angular does not do value-based dirty checking by default. You need to explicitly set the flag to enable it.
đang được dịch, vui lòng đợi..
