Using $any() To Temporarily Disable Type-Checking Within A Component Template In Angular 9.0.0-rc.4

added by JavaScript Kicks
12/7/2019 2:50:19 PM

284 Views

In recent releases of Angular, type-checking has been extended to include our component templates. Which is awesome for catching compile-time bugs. However, the type-checking within our template is not quite as clever as the type-checking within our TypeScript code. For example, type-checking doesn't appear to work well with discriminated unions.


0 comments