Using Array ...spread to enforce Pipe immutability.

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Pipes need a new reference or else they will not update their output. In this lesson you will use the Array ...spread operator to create new Array to update pipe output without mutation.

kevin
kevin
~ 5 years ago

Ugg this is more work and its incredibly difficult and it is different.

John Lindquist
John Lindquistinstructor
~ 5 years ago

There are libraries that make this much easier, but they aren't built into Angular 2 by default so I showed the "vanilla JavaScript way".