Created
May 12, 2015 19:22
-
-
Save NicholasMurray/3e14a8df444f38022b46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.factory("newsService", function() { | |
| var hewsHeadlines = [ | |
| { | |
| title: 'Big Scandal' | |
| }, | |
| { | |
| title: 'Small Heatwave' | |
| } | |
| ]; | |
| var sportsHeadlines = [ | |
| { | |
| title: 'Big Win' | |
| }, | |
| { | |
| title: 'Big Loss' | |
| } | |
| ]; | |
| return { | |
| getNewsHeadlines: getNewsHeadlines, | |
| getSportsHeadlines: getSportsHeadlines | |
| }; | |
| function getNewsHeadlines() { | |
| return hewsHeadlines | |
| } | |
| function getSportsHeadlines() { | |
| return sportsHeadlines | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment