Home - priya61/Angular2 GitHub Wiki
Welcome to the Angular2 wiki!
=-----------------------------
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object https://www.typescriptlang.org/docs/handbook/modules.html https://angular.io/guide/upgrade---for upgrading ang1 to ang2 RxJS library
RxJS (“Reactive Extensions”) is a 3rd party library, endorsed by Angular, that implements the asynchronous observable pattern. RxJS npm package loaded via system.js because observables are used widely in Angular applications. The app needs it when working with the HTTP client. Additionally, you must take a critical extra step to make RxJS observables usable. The RxJS library is large. Size matters when building a production application and deploying it to mobile devices. You should include only necessary features. Accordingly, Angular exposes a stripped down version of Observable in the rxjs/Observable module that lacks most of the operators such as the map method. You could add every RxJS operator with a single import statement. While that is the easiest thing to do, you’d pay a penalty in extended launch time and application size because the full library is so big. Since this app only uses a few operators, it’s better to import each Observable operator and static class method, one-by-one, for a custom Observable implementation tuned precisely to the app’s requirements. Put the import statements in one app/rxjs-operators.ts file.