The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Handling Click Events with Subjects

Handling Click Events with Subjects

1:33
While Angular 2 usually uses event handlers to manage events and RxJS typically uses Observable.fromEvent, a good practice when using Angular 2 and RxJS combined is to use Subjects and push the value through each event so that you can use it as part of your stream.
Watch this lesson now
Avatar
egghead.io

While Angular 2 usually uses event handlers to manage events and RxJS typically uses Observable.fromEvent, a good practice when using Angular 2 and RxJS combined is to use Subjects and push the value through each event so that you can use it as part of your stream.

Avatar
Mike thompson

Slight aside here, but I noticed you experienced the same issue I was having with WebStorm auto-importing with double quotes instead of single quotes. Any way to have WebStorm auto-import with single quotes instead of double quotes?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?