mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
BEFORE:
The following would throw in the dev mode because `f` would return a new array when called by checkNoChanges.
@Component({
template: `
{{f()}}
`
})
class A {
f() { return [1]; }
}
AFTER:
The checkNoChanges function compares only primitives types for equality, and deeply compares iterables. Other objects cannot cause checkNoChanges to throw. This means that the dev mode would never fail given a legal program, but may allow some illegal programs.
|
||
|---|---|---|
| .. | ||
| angular1_router | ||
| angular2 | ||
| angular2_material | ||
| benchmarks | ||
| benchmarks_external | ||
| benchpress | ||
| payload_tests/hello_world/ts | ||
| playground | ||