X Tutup
The Wayback Machine - https://web.archive.org/web/20201006220901/https://github.com/angular/angular
Skip to content
master
Go to file
Code

Latest commit

As of #32671, the type of `AbstractControl.parent` can be null which can cause
compilation errors in existing apps. These changes add a migration that will append
non-null assertions to existing unsafe accesses.

````
// Before
console.log(control.parent.value);

// After
console.log(control.parent!.value);
```

The migration also tries its best to avoid cases where the non-null assertions aren't
necessary (e.g. if the `parent` was null checked already).

PR Close #39009
aeec223

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

README.md

You can’t perform that action at this time.
X Tutup