aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/search/search.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/search/search.service.ts')
-rw-r--r--client/src/app/shared/search/search.service.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/src/app/shared/search/search.service.ts b/client/src/app/shared/search/search.service.ts
new file mode 100644
index 000000000..787c02d2b
--- /dev/null
+++ b/client/src/app/shared/search/search.service.ts
@@ -0,0 +1,15 @@
1import { Injectable } from '@angular/core';
2import { Subject } from 'rxjs/Subject';
3
4import { Search } from './search.model';
5
6// This class is needed to communicate between videos/list and search component
7// Remove it when we'll be able to subscribe to router changes
8@Injectable()
9export class SearchService {
10 searchChanged: Subject<Search>;
11
12 constructor() {
13 this.searchChanged = new Subject<Search>();
14 }
15}