'user strict';

angular.module('g3cApp.congDong')
	.controller('congDongCtrl', function congDongCtrl($scope, $http){
		
	})
	.controller('getTopUserCtrl', function getTopUserCtrl($scope, $http){
        $http.get('../../data/congDong/congDong.json')
        .then (function Success(response) {
            $scope.users = response.data.usersList;
            $scope.users.sort();
            $scope.usersTop = $scope.users.slice(0, 3);
        },
        function Error (response) {
            console.log(response);
        });

/*    this.top1 = this.users[0].username;
    this.top2 = this.users[1].username;
    this.top3 = this.users[2].username;*/
	});

@@ -227,24 +227,25 @@
 ongDong/
-congDong
+usersList
 .json')%0A
@@ -648,13 +648,528 @@
 name;*/%0A
-
 %09%7D)
+%0A    .controller('getUsersPostCtrl', function getUsersPostCtrl ($scope, $http) %7B%0A        $http.get('../../data/congDong/usersPost.json') %0A        .then (function Success(response) %7B%0A            $scope.posts = response.data.usersPost;%0A        %7D,%0A        function Error (response) %7B%0A            console.log(response);%0A        %7D);%0A        $scope.getTime = function  (dateTime) %7B%0A            $scope.dt = new Date(year, month, day, hours, minutes, seconds);%0A            $scope.dt = $scope.dt - dateTime;%0A        %7D%0A    %7D)
 ;%0A

update js