Why does Angular always complain about null values?!
Channel:
Subscribers:
81,900
Published on ● Video Link: https://www.youtube.com/watch?v=p3UvEX_B8ks
In this video, we take a look at why enabling strict mode in TypeScript causes so many null or undefined errors in Angular and what to do about it.
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:55 The problem with null values
1:35 Input value not initialised
2:33 Supplying an initial value
2:50 Handle the undefined case
3:55 Non-null assertion operator
4:49 Null values in the template
8:17 Conclusion
#ionic #angular #typescript
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony
Other Videos By Joshua Morony
Tags:
ionic
tutorial
tutorials
ionic tutorials
ionic framework
coding
coding tutorials
angular
angular tutorials
capacitor tutorials
mobile
mobile apps
apps
html5
ios
android
native
hybrid
pwa
web apps
progressive web applications
programming
stenciljs
stencil
performance
ui
ux
animations
screencast
rxjs
nx
ngrx
architecture