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)">
`
})