Created
April 20, 2013 19:29
-
-
Save dmarr/5427090 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
'use strict'; | |
/* | |
* This method seems to break the app, use the bare function below instead | |
*/ | |
//angular.module('phoenixApp', ['articleServices']) | |
// .controller('StoryCtrl', function($scope, $routeParams, Article) { | |
// Article.get($routeParams.storyId).then(function (data) { | |
// $scope.article = data.data; | |
// }); | |
// }); | |
function StoryCtrl($scope, $routeParams, Article) { | |
Article.get($routeParams.storyId).then(function (data) { | |
$scope.article = data.data; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{ article.headline }}
{{ article.publishedAt | date }} in {{ article.section }} by {{ article.author.displayName }}