An object reference check is fast - much faster than a deep check for differences - so Angular can quickly determine if it can skip both the pipe execution and a view update.
对象引用的检查是非常快的(比递归的深检查要快得多),所以angular可以快速的决定是否应该跳过管道执行和视图更新。
If it is easier to check a return value, or call an API to change a setting then go deep... and stop messing around on the surface.
如果检查一个返回值或者调用一个API来改变设置会更简单,那么就深入下去,停止在UI上浪费时间了。
Check if the wound is a deep one or just a minor scratch.
检查伤口是深的或者只是轻微的划伤。
应用推荐