diff --git a/modules/angular2/src/core/annotations/annotations.js b/modules/angular2/src/core/annotations/annotations.js index 1510f8b159..6837822447 100644 --- a/modules/angular2/src/core/annotations/annotations.js +++ b/modules/angular2/src/core/annotations/annotations.js @@ -120,7 +120,6 @@ import {DEFAULT} from 'angular2/change_detection'; * * Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type from the parent * component's injector. - * * ``` * @Decorator({ selector: '[my-directive]' }) * class MyDirective { @@ -372,17 +371,17 @@ export class Directive extends Injectable { * * ``` * @Component({ - * events: ['status-change'] + * events: ['statusChange'] * }) * class TaskComponent { * statusChange:EventEmitter; * * constructor() { - * this.complete = new EventEmitter(); + * this.statusChange = new EventEmitter(); * } * * onComplete() { - * this.statusChange.next("completed"); + * this.statusChange.next('completed'); * } * } * ```