From 88ab1d0e553238f45e16fabd208134f836564a63 Mon Sep 17 00:00:00 2001 From: Collin Klopfenstein Date: Thu, 10 May 2018 16:57:59 -0500 Subject: [PATCH] docs(aio): changed 'onVoted' output property to 'voted' to be in line with the styleguide (#23832) PR Close #23832 --- .../component-interaction/src/app/voter.component.ts | 12 ++++++------ .../src/app/votetaker.component.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/aio/content/examples/component-interaction/src/app/voter.component.ts b/aio/content/examples/component-interaction/src/app/voter.component.ts index 9583e74466..845e6fba0e 100644 --- a/aio/content/examples/component-interaction/src/app/voter.component.ts +++ b/aio/content/examples/component-interaction/src/app/voter.component.ts @@ -5,18 +5,18 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; selector: 'app-voter', template: `

{{name}}

- - + + ` }) export class VoterComponent { @Input() name: string; - @Output() onVoted = new EventEmitter(); - voted = false; + @Output() voted = new EventEmitter(); + didVote = false; vote(agreed: boolean) { - this.onVoted.emit(agreed); - this.voted = true; + this.voted.emit(agreed); + this.didVote = true; } } // #enddocregion diff --git a/aio/content/examples/component-interaction/src/app/votetaker.component.ts b/aio/content/examples/component-interaction/src/app/votetaker.component.ts index 564cb93261..d553af0d7b 100644 --- a/aio/content/examples/component-interaction/src/app/votetaker.component.ts +++ b/aio/content/examples/component-interaction/src/app/votetaker.component.ts @@ -8,7 +8,7 @@ import { Component } from '@angular/core';

Agree: {{agreed}}, Disagree: {{disagreed}}

+ (voted)="onVoted($event)"> ` })