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.
|
||
|---|---|---|
| .. | ||
| animate | ||
| common | ||
| compiler | ||
| core | ||
| facade | ||
| http | ||
| mock | ||
| platform | ||
| router | ||
| symbol_inspector | ||
| testing | ||
| upgrade | ||
| web_workers | ||
| dev_mode_spec.ts | ||
| public_api_spec.ts | ||