Advantage Of The Let Operator in Angular

ref: https://netbasal.com/take-advantage-of-the-let-operator-in-angular-d351fd4bd1d9

The Let Operator —

Let me have the whole observable

Returns an observable sequence that is the result of invoking the selector on the source sequence.

We have new Input called middleware that is a function that takes the valueChanges observable and needs to return a new observable.

If the consumer does not use the middleware Input, we are returning the same observable.

The full example.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s