Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7238d6d

Browse files
authored
docs(tutorial/6 - Two-way Data Binding): Fixed Experiments Documentation
In the experiments section, it is suggested to add a `-` symbol to `<option value="age">Oldest</option>` This change is made to reverse the sort order when selecting the "age" option. However, this change affects the default $ctrl.orderProp that we had set in app/phone-list/phone-list.component.js After making the change, our default when refreshing the page is "Sort by: [blank]" I added some additional documentation to clarify that this behavior makes sense and that the reader should try and fix this within phone-list.component.js Let me know if this makes sense or if there's anything I can do to help improve the fix. Thank you!
1 parent 0cdff42 commit 7238d6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/content/tutorial/step_06.ngdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ You can now rerun `npm run protractor` to see the tests run.
230230

231231
* Reverse the sort order by adding a `-` symbol before the sorting value:
232232
`<option value="-age">Oldest</option>`
233+
Upon refreshing the page, you'll see that the default selection of the "age" option in "Sort by" is blank again.
234+
Try fixing this in **`app/phone-list/phone-list.component.js`:**
235+
233236

234237

235238
## Summary

0 commit comments

Comments
 (0)