1 import { Injectable } from '@angular/core';
2 import { Subject } from 'rxjs/Subject';
4 import { Search } from './search.model';
6 // This class is needed to communicate between videos/ and search component
7 // Remove it when we'll be able to subscribe to router changes
9 export class SearchService {
10 searchUpdated: Subject<Search>;
11 updateSearch: Subject<Search>;
14 this.updateSearch = new Subject<Search>();
15 this.searchUpdated = new Subject<Search>();