{"size": 760, "ext": "js", "max_stars_repo_path": "public/js/my-scripts/history.js", "max_stars_repo_name": "KowalczykPiotr/VirtualOffice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/my-scripts/history.js", "max_issues_repo_name": "KowalczykPiotr/VirtualOffice", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/my-scripts/history.js", "max_forks_repo_name": "KowalczykPiotr/VirtualOffice", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.75, "max_line_length": 96, "alphanum_fraction": 0.4815789474}
app.controller('historyCtrl', function ($scope, $rootScope, $http, $base64, $timeout, $window) {


        $scope.dupa = function (id) {

            alert(id);
        }

        $scope.inputChange = function () {


        var Name = $scope.inputClient;
        console.log('(((((' + Name + ')))))');

        var uri = encodeURI('/api/customers/0/10?search=' + Name);
        $http({
            method: 'GET',
            url: uri,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
            }
        }).then(function (response) {

            $scope.customers = response.data;
            console.log(response.data);
        }, function (rejection) {
            console.log(rejection);
        });
    }


});