Angular 2 output from router-outlet
<router-outlet></router-outlet> can’t be used to emit an event from the child component. One way to communicate between two components is to use a common service. Create a service shared-service.ts import { Observable } from “rxjs/Observable”; import { Injectable } from “@angular/core”; import { Subject } from “rxjs/Subject”; @Injectable() export class SharedService { // Observable string … Read more