Wednesday, June 12, 2024

The Download: Apple’s AI plans, and a carbon storage boom

At its Worldwide Developer Conference...

The Unrealized Potential Of Olfactory Design — Smashing Magazine

Kristian Mikhel covers various practical applications...

Angular Signals update function – DEV Community

Programming LanguageAngular Signals update function - DEV Community

We have a signal value with an object type and want to update one or some of that object’s values.

In this case, we can use the Angular Signals update function and JavaScript spread syntax:

this.user.update((user) => ({ ...user, fistName: "First name updated!" }));
// or
this.user.update((user) => ({ ...user, fistName: "First name updated!", lastName: "Last name updated!" }));
// or
this.user.update((user) => ({ ...user, ...this.curUser }));
Enter fullscreen mode

Exit fullscreen mode

A complete example is here 👉

I hope you found it helpful. Thanks for reading. 🙏

Let’s get connected! You can find me on:

Check out our other content

Check out other tags:

Most Popular Articles