My modern Angular course: [ Ссылка ]
We take a look at four different approaches to dealing with potentially null values in Angular, ending in creating a generic type guard that we can use to assign a type to any object on the condition that it has no null values.
Get weekly content and tips exclusive to my newsletter: [ Ссылка ]
Learn Angular with Ionic: [ Ссылка ]
0:00 Introduction
0:15 The problem
1:01 Type assertion
1:45 Manual check
2:31 Type guard
4:23 Generic type guard
#ionic #angular
- More tutorials: [ Ссылка ]
- Follow me on Twitter: [ Ссылка ]
Ещё видео!