Do not import whole rxjs

pull/10/head
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 { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Rx';
import { Observable } from 'rxjs/Observable';
import { AuthService } from '../shared';

View File

@ -1,6 +1,7 @@
import { Injectable } from '@angular/core';
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 { User } from './user.model';

View File

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

View File

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

View File

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