Skip to content

Commit 81432a2

Browse files
committed
Merge pull request johnpapa#40 from joshua703/fix-factories-typo
Clean up typos in data services section. -- Thanks
2 parents 994857c + a3eaade commit 81432a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ Many of my styles have been from the many pair programming sessions [Ward Bell](
571571
572572
- **Separate Data Calls**: Refactor logic for making data operations and interacting with data to a factory. Make data services responsible for XHR calls, local storage, stashing in memory, or any other data operations.
573573
574-
*Why?*: The controller's responsibility is for the presentation and gathering of information for the view. It should not care ow it gets the data, just that it knows who to ask for it. Separating the data services moves the logic on how to get it to the data service, and let's the controller be simpler and more focused on the view.
574+
*Why?*: The controller's responsibility is for the presentation and gathering of information for the view. It should not care how it gets the data, just that it knows who to ask for it. Separating the data services moves the logic on how to get it to the data service, and lets the controller be simpler and more focused on the view.
575575
576576
*Why?*: This makes it easier to test (mock or real) the data calls when testing a controller that uses a data service.
577577

0 commit comments

Comments
 (0)