Subscribe to EventEmitter in Angular2 not working
问题 I'm learning Angular 2. I'm trying to send data from a component to other on the click of the first one. Both components are siblings. This is my code so far: First Component: @Component({ selector: 'jsonTextInput', templateUrl: '../templates/jsonTextInput.html', directives: [Card, CardTitle, CardDescription, Icon], providers: [JsonChangeService] }) export class JsonTextInput { json: string = ''; constructor (private jsonChangeService: JsonChangeService) { this.jsonChangeService =