正在加载视频...
视频加载失败
🚀 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 次观看 • 2 年前 •via X (Twitter)
8 条评论

Tomasz Ducin2 年前
are output()s in 17.1 as well or not yet?

Migrant2 年前
The "before" code is artificially verbose, isn't it?

Minko Gechev2 年前
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 年前
We could have removed these getters before 😏

Jordan Hall2 年前
I like signal inputs but anyone else feel like using effect is ugly here and less readable?

Charlie Greenman2 年前
yay

Dustin Goodman2 年前
Very nice!

Pavan K Jadda2 年前
Enough for me to use in PROD
