app.controller('ctrl', function(posts, $scope) { | |
var postId = 'post123'; | |
posts.$loaded(function() { | |
$scope.post = posts.$getRecord(postId); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment