diff --git a/docs/can-guides/commitment/recipes/weather-report/weather-report.md b/docs/can-guides/commitment/recipes/weather-report/weather-report.md index be99787465e..692e28a5e58 100755 --- a/docs/can-guides/commitment/recipes/weather-report/weather-report.md +++ b/docs/can-guides/commitment/recipes/weather-report/weather-report.md @@ -9,26 +9,26 @@ CanJS 3.5. The final widget looks like: -JS Bin on jsbin.com +JS Bin on jsbin.com To use the widget: 1. __Enter__ a location (example: `Chicago`) -2. If the location name isn't unique, __click__ on the intended location. -3. See the 10 day forecast for your selected city. +2. If the location name isn’t unique, __click__ on the intended location. +3. See the 10-day forecast for your selected city. __Start this tutorial by cloning the following JSBin__: -JS Bin on jsbin.com +JS Bin on jsbin.com This JSBin has initial prototype HTML and CSS which is useful for getting the application to look right. The following sections are broken down into: -- Problem - A description of what the section is trying to accomplish. -- Things to know - Information about CanJS that is useful for solving the problem. -- Solution - The solution to the problem. +- Problem — A description of what the section is trying to accomplish. +- Things to know — Information about CanJS that is useful for solving the problem. +- Solution — The solution to the problem. ## Setup @@ -56,7 +56,7 @@ Get the basic setup for a CanJS app (in a JSBin) setup by: ```js var Type = can.DefineMap.extend({ - message: "string" + message: "string" }); ``` @@ -66,10 +66,10 @@ Get the basic setup for a CanJS app (in a JSBin) setup by: ```js var MessageViewModel = can.DefineMap.extend({ - message: "string" + message: "string" }); - var messageVM = new MessageViewModel(); + var messageVM = new MessageViewModel(); var frag = template(messageVM) ``` @@ -109,8 +109,10 @@ document.body.appendChild(frag); ### The problem -We want an input element where a person can type a location to search for weather -and to show the user the location they typed. +We want an `input` element to: + +- Allow a person to type a location to search for weather. +- Show the user the location they typed. ### Things to know @@ -122,7 +124,7 @@ and to show the user the location they typed. property: "string" }) ``` -- The [can-stache-bindings.toParent] can set an input's `value` to +- The [can-stache-bindings.toParent] can set an input’s `value` to a ViewModel property like: ```html @@ -142,7 +144,7 @@ and to show the user the location they typed. Update the template in the `HTML` tab to: 1. Update `location` on the ViewModel when the input changes. -2. Show value of the ViewModel's `location` property. +2. Show value of the ViewModel’s `location` property. ```html