1
0
Fork 0

Do not import whole rxjs

This commit is contained in:
Chocobozzz 2016-06-05 09:34:41 +02:00
parent e56b20f587
commit 5555f886c0
5 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http'; import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Rx'; import { Observable } from 'rxjs/Observable';
import { AuthService } from '../shared'; import { AuthService } from '../shared';

View file

@ -1,6 +1,7 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Headers, Http, RequestOptions, Response, URLSearchParams } from '@angular/http'; import { Headers, Http, RequestOptions, Response, URLSearchParams } from '@angular/http';
import { Observable, Subject } from 'rxjs/Rx'; import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { AuthStatus } from './auth-status.model'; import { AuthStatus } from './auth-status.model';
import { User } from './user.model'; import { User } from './user.model';

View file

@ -1,6 +1,6 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Http, Response, URLSearchParams } from '@angular/http'; import { Http, Response, URLSearchParams } from '@angular/http';
import { Observable } from 'rxjs/Rx'; import { Observable } from 'rxjs/Observable';
import { Pagination } from './pagination.model'; import { Pagination } from './pagination.model';
import { Search } from '../../shared'; import { Search } from '../../shared';

View file

@ -15,6 +15,7 @@
<!-- 3. Display the application --> <!-- 3. Display the application -->
<body> <body>
<my-app>Loading...</my-app> <my-app>
</my-app>
</body> </body>
</html> </html>

View file

@ -12,6 +12,9 @@ import '@angular/http';
import '@angular/router-deprecated'; import '@angular/router-deprecated';
// RxJS // RxJS
import 'rxjs/Observable';
import 'rxjs/Subject';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map'; import 'rxjs/add/operator/map';
import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/mergeMap';