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

Commit 838dd12

Browse files
ravefalcon92gkalpak
authored andcommitted
docs(tutorial/step_6): fix experiment description
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 `phone-list.component.js`. After making the change, our default when refreshing the page is "Sort by: [blank]". This commit adds some additional documentation to clarify that this behavior makes sense and that the reader should try and fix this within `phone-list.component.js`. Closes #16781
1 parent 6926223 commit 838dd12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/tutorial/step_06.ngdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ 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+
After making this change, you'll notice that the drop-down list has a blank option selected and does not default to age anymore.
234+
Fix this by updating the `orderProp` value in `phone-list.component.js` to match the new value on the `<option>` element.
233235

234236

235237
## Summary

0 commit comments

Comments
 (0)