Hi,
using John Papa's ng2 seed
<https://github.com/johnpapa/angular2-tour-of-heroes>
I am wondering why, when using "module":"system" in tsconfig.json one has
to import stuff individually, i.e. something like
import {Observable} from 'rxjs/Observable';
import {Subject} from 'rxjs/Subject';
import 'rxjs/add/operator/map';
whereas other examples such as this one
<https://github.com/ng-book/angular2-rxjs-chat/blob/master/app/ts/services/MessagesService.ts>
using "module":"commonjs"
can import like this
import {Subject, Observable} from 'rxjs';
and don't have to import rxjs operators individually. Doing the latter with
John Papa's project will *not* create a compile time error, but a *runtime*
error with a browser request to a non-existent
http://localhost:3000/rxjs
.tom
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.