ngUpgraders / ng-forward

The default solution for those that want to write Angular 2.x style code in Angular 1.x
411 stars 36 forks source link

Adopt NG2 Strategy for using RX #19

Closed hannahhoward closed 8 years ago

hannahhoward commented 8 years ago

Hey this is one possible strategy for keeping the build size down. NG2 now seems to use some 'next' version of RxJS which allows you to import Subject directly. This gets the minified build down to 65kb, including the needed parts of RxJS. Might be useful so the package is truly standalone.

Still not 24kb, but a lot better than 145kb

MikeRyanDev commented 8 years ago

Perfect! Though I wonder why not just use subjects instead of EventEmitters at this point? I'd be curious to see how that shakes out in the Angular 2 source.

timkindberg commented 8 years ago

I think I remember hearing about things moving to Subjects as well in Angular 2