function()

in web-app/app/controllers/searchControllers.js [39:55]


                   function(response) {

                        console.log(response);
                        let rawResult = response.data.body;
                        rawResult = rawResult.replace(/\'/g, "\"");
                        let json = JSON.parse(rawResult);
                        $scope.searchResults = json;

                        $scope.images = [];
                        $scope.titles = [];
                        let matches = json.matches;
                        matches.forEach( match => {
                            $scope.images.push(match.url);
                            $scope.titles.push(match.title);
                        });

                   },