I am looking for creating a global import file instead of importing the same libraries in each component (same import in each component).
I have seen index.ts file here which includes the import references of file like component and service. but i am looking for a solution by which i can import following references in one file and then i must be able to import single file to my components instead of all the following references.
// Observable class extensions
export * from 'rxjs/add/observable/of';
// Observable operators
export * from 'rxjs/add/operator/catch';
export * from 'rxjs/add/operator/debounceTime';
export * from 'rxjs/add/operator/distinctUntilChanged';
export { Component, OnInit } from '@angular/core';
export { Http, Response, Headers } from '@angular/http';
export * from 'rxjs/add/operator/map';
Please help, i am new in angular 2 and could not find any help in this regard.