+ timeline

This commit is contained in:
tmshv committed 2014-11-24 00:15:18 +03:00
1 parent 0d6cf42c7f
commit 37d22b63ad
11 files changed
+183 -60

No files matched your search

-16
View File
@@ -6,20 +6,4 @@ module.exports = function (app) {
app.controller("HomePageController", function ($scope) {
$scope.pageClass = "page-home";
});
app.controller("FeedController", function ($scope, api) {
api.feed.post()
.success(function (list) {
$scope.feed = list.map(function (post) {
return {
date: post.publishDate,
image: post.data.images.standard_resolution.url,
url: post.data.link,
username: post.data.user.username,
userpic: post.data.user.profile_picture,
text: post.data.caption.text
}
});
});
});
};