This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
public/docs/ts/latest/tutorial Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,14 +273,14 @@ include ../../../../_includes/_util-fns
273
273
274
274
When our app loads we see a list of heroes, but a hero is not selected.
275
275
The `selectedHero` is `undefined`.
276
- That’s why we'll' see the following error in the browser’s console:
276
+ That’s why we'll see the following error in the browser’s console:
277
277
```
278
278
EXCEPTION: TypeError: Cannot read property 'name' of undefined in [null]
279
279
```
280
280
Remember that we are displaying `selectedHero.name` in the template.
281
281
This name property does not exist because `selectedHero`itself is undefined.
282
282
283
- We'll' address this problem by keeping the hero detail out of the DOM until there is a selected hero.
283
+ We'll address this problem by keeping the hero detail out of the DOM until there is a selected hero.
284
284
285
285
We wrap the HTML hero detail content of our template with a `<div>`.
286
286
Then we add the `ng-if` built-in directive and set it to the `selectedHero` property of our component.
@@ -374,7 +374,7 @@ include ../../../../_includes/_util-fns
374
374
375
375
:markdown
376
376
Notice in the template that the `ng-class` name is surrounded in square brackets (`[]`).
377
- This is the syntax for a Property Binding, a binding in which data flow one way
377
+ This is the syntax for a Property Binding, a binding in which data flows one way
378
378
from the data source (the `getSelectedClass`) to a property of the `ng-class` directive.
379
379
380
380
.alert.is-helpful
You can’t perform that action at this time.
0 commit comments