Horje
videoTitle$ Angular 2 - communication between two sibling components Code Example
videoTitle$ Angular 2 - communication between two sibling components
Because you are working with Observers and Observables in your service, 
you don't need to communicate both components because you can directly
 connect the service with the component template. This should be the code:

Service:

import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { Subject }    from 'rxjs/Subject';
import 'rxjs/add/operator/map';

@Injectable()
export class AppService {
  private apiURL = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails,status&maxResults=10&playlistId=PLSi28iDfECJPJYFA4wjlF5KUucFvc0qbQ&key=AIzaSyCuv_16onZRx3qHDStC-FUp__A6si-fStw&pretty=true";

  //Observable string sources
  private thisVideoTitle = new Subject<string>();
  //Observable string streams
  videoTitle$ = this.thisVideoTitle.asObservable();
  constructor(private http:Http) { }

  getData() {
    return this.http.get(this.apiURL)
      .map((res:Response)=> res.json())
      .subscribe(nameTitle => this.thisVideoTitle.next(nameTitle))
  }
}

part ii
Then if you want to use this into your component template it should be something like:
<li *ngFor="let title of videoTitle$ | async"></li>




Javascript

Related
Nested Array Filter Code Example Nested Array Filter Code Example
send get request with button to endpoint Code Example send get request with button to endpoint Code Example
jquery documentfragment Code Example jquery documentfragment Code Example
`ForwardRef(ListboxComponent)`, expected a ReactNode. at ListboxComponent Code Example `ForwardRef(ListboxComponent)`, expected a ReactNode. at ListboxComponent Code Example
how to call AWS Serverless api in Node/JS Code Example how to call AWS Serverless api in Node/JS Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12