diff --git a/public/docs/js/latest/guide/_data.json b/public/docs/js/latest/guide/_data.json index cfd13a7df1..001d0e6f38 100644 --- a/public/docs/js/latest/guide/_data.json +++ b/public/docs/js/latest/guide/_data.json @@ -16,7 +16,7 @@ "user-input": { "title": "User Input", - "intro": "DOM events drive user input in Angular. You can use the native events like click, mouseover, and keyup. Angular uses a special syntax to register events to DOM elements. This section covers all of the ins and outs of using the event syntax." + "intro": "DOM events drive user input in Angular. You can use the native events like click, mouseover, and keyup. Angular uses a special syntax to register events to DOM elements. This section covers all the ins and outs of using the event syntax." }, "making-components": { diff --git a/public/docs/js/latest/guide/user-input.jade b/public/docs/js/latest/guide/user-input.jade index e1967fa574..a88d287d6a 100644 --- a/public/docs/js/latest/guide/user-input.jade +++ b/public/docs/js/latest/guide/user-input.jade @@ -4,17 +4,18 @@ If you want to skip to the working examples you can check out these links on Plunker. TypeScript Example or addTodo() method and pass it the value. Since you created a reference called todotext, you can get the value with - todotext.domElement.value. + todotext.value. pre.prettyprint.lang-html code. - <button (click)="addTodo(todotext.domElement.value)">Add Todo</button> + <button (click)="addTodo(todotext.value)">Add Todo</button> p And then create the doneTyping() method on TodoList and handle adding the todo text. @@ -145,7 +146,7 @@ '</li>' + '</ul>' + '<input #textbox (keyup)="doneTyping($event)">' + - '<button (click)="addTodo(textbox.domElement.value)">Add Todo</button>', + '<button (click)="addTodo(textbox.value)">Add Todo</button>', directives: [angular.For, angular.If] }) ]; @@ -171,7 +172,7 @@ </ul> <input #todotext (keyup)="doneTyping($event)"> - <button (click)="addTodo(todotext.domElement.value)">Add Todo</button> + <button (click)="addTodo(todotext.value)">Add Todo</button> `, directives: [For, If] })