Video yükleniyor...
Video Yüklenemedi
🚀 Angular v17.1 is out today and I can finally refactor these getters in my code! Keep in mind that signal inputs are still in developer preview, so we are not yet following semver for updating their API. 📚
41,656 görüntüleme • 2 yıl önce •via X (Twitter)
8 Yorum

Tomasz Ducin2 yıl önce
are output()s in 17.1 as well or not yet?

Migrant2 yıl önce
The "before" code is artificially verbose, isn't it?

Minko Gechev2 yıl önce
Yeah in this oversimplified example it looks that way. A few differences: - Composability - effect and computed allow signal composition - Execution - gets invoked only when this signal changes - Readability - always subjective, I find simpler primitives easier to reason about

Eugeno2 yıl önce
We could have removed these getters before 😏

Jordan Hall2 yıl önce
I like signal inputs but anyone else feel like using effect is ugly here and less readable?

Charlie Greenman2 yıl önce
yay

Dustin Goodman2 yıl önce
Very nice!

Pavan K Jadda2 yıl önce
Enough for me to use in PROD
