This is why you need TypeScript type guards in Angular

Описание к видео This is why you need TypeScript type guards in Angular

My modern Angular course: https://angularstart.com/

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: https://mobirony.ck.page/4a331b9076

Learn Angular with Ionic: https://ionicstart.com

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: https://eliteionic.com
- Follow me on Twitter:   / joshuamorony  

Комментарии

Информация по комментариям в разработке