Skip to content

Instantly share code, notes, and snippets.

@NicholasMurray
Created May 12, 2015 19:22
Show Gist options
  • Select an option

  • Save NicholasMurray/3e14a8df444f38022b46 to your computer and use it in GitHub Desktop.

Select an option

Save NicholasMurray/3e14a8df444f38022b46 to your computer and use it in GitHub Desktop.
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