3 Useful Input Decorator Features in #Angular 16

preview_player
Показать описание
#frontendSnack 24💡These 3 useful component input features make your code much cleaner in #angular16 🤓

Level up your Angular skills with my advanced courses 🚀

💡 Follow me also in:
Рекомендации по теме
Комментарии
Автор

The alias would work nice with the transform. Perhaps you transform some input object to a formgroup. Then it would make sense to have it named differently after the transform

Immerz
Автор

Watching this I love Angular even more ❤️ These features are like motherʼs care!

uyzygyb
Автор

you miss input routes, you can access route params directly in your component usign input decorator

haroldpepete
Автор

Amazingly helpful tips! Just started learning Angular, required inputs wasn't a thing before Angular 16? How did Angular implement the React's equivalent of required props before?

invictuz
Автор

What would be the use case for 3rd tip?

zavv
Автор

If I remember correctly, the get must apper first, before set in order to work. And alias was available always as Input('alias')

vadimr