]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/search/search.service.ts
Server: Add NSFW in user profile
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / search / search.service.ts
CommitLineData
00a44645
C
1import { Injectable } from '@angular/core';
2import { Subject } from 'rxjs/Subject';
9aa46b0c 3import { ReplaySubject } from 'rxjs/ReplaySubject';
00a44645
C
4
5import { Search } from './search.model';
6
0629423c 7// This class is needed to communicate between videos/ and search component
00a44645
C
8// Remove it when we'll be able to subscribe to router changes
9@Injectable()
10export class SearchService {
bddab65a
C
11 searchUpdated: Subject<Search>;
12 updateSearch: Subject<Search>;
00a44645
C
13
14 constructor() {
bddab65a 15 this.updateSearch = new Subject<Search>();
9aa46b0c 16 this.searchUpdated = new ReplaySubject<Search>(1);
00a44645
C
17 }
18}