]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/search/search.service.ts
Update webtorrent -> 0.96
[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';
3
4import { Search } from './search.model';
5
0629423c 6// This class is needed to communicate between videos/ and search component
00a44645
C
7// Remove it when we'll be able to subscribe to router changes
8@Injectable()
9export class SearchService {
bddab65a
C
10 searchUpdated: Subject<Search>;
11 updateSearch: Subject<Search>;
00a44645
C
12
13 constructor() {
bddab65a
C
14 this.updateSearch = new Subject<Search>();
15 this.searchUpdated = new Subject<Search>();
00a44645
C
16 }
17}