aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/search/search.service.ts
blob: 787c02d2b677e5368b34e64b72ddc2a3bae7213f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';

import { Search } from './search.model';

// This class is needed to communicate between videos/list and search component
// Remove it when we'll be able to subscribe to router changes
@Injectable()
export class SearchService {
  searchChanged: Subject<Search>;

  constructor() {
    this.searchChanged = new Subject<Search>();
  }
}