Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Do not import whole rxjs

Chocobozzz5555f886c0ef
diff --git a/client/src/app/friends/friend.service.ts b/client/src/app/friends/friend.service.ts
index a8b1a1bd35..f956a5ece7 100644
--- a/client/src/app/friends/friend.service.ts
+++ b/client/src/app/friends/friend.service.ts
@@ -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';
diff --git a/client/src/app/shared/users/auth.service.ts b/client/src/app/shared/users/auth.service.ts
index d63fe38f3c..720037563b 100644
--- a/client/src/app/shared/users/auth.service.ts
+++ b/client/src/app/shared/users/auth.service.ts
@@ -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';
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts
index 76d46cbb4a..dcbef77177 100644
--- a/client/src/app/videos/shared/video.service.ts
+++ b/client/src/app/videos/shared/video.service.ts
@@ -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';
diff --git a/client/src/index.html b/client/src/index.html
index f2f601779a..5cf491221b 100644
--- a/client/src/index.html
+++ b/client/src/index.html
@@ -15,6 +15,7 @@
<!-- 3. Display the application -->
<body>
- <my-app>Loading...</my-app>
+ <my-app>
+ </my-app>
</body>
</html>
diff --git a/client/src/vendor.ts b/client/src/vendor.ts
index 6d7ebc3b42..496f44cf6c 100644
--- a/client/src/vendor.ts
+++ b/client/src/vendor.ts
@@ -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';