$scope and http request

Hello everyone i have a problem and i hope you guys will help me:

i have this http request

$http.get('http://localhost:1337/bonplan?idbonplan='+$scope.idbp).
      success(function(data, status, headers, config) {
              $scope.res = data;
              console.log('statut : '+status);
              console.log('reponse : '+data);
              console.log($scope.res);

        }).
      error(function(data, status, headers, config) {
             console.log('error'+status);
        });

i can’t acces to $scope.res in the DOM
when i type
<p>{{res.title}}</p>
nothing appears.
any ideas?

Hi @rickdana,

It sounds like the success callback was not triggered or the res element does not have a title child element.

Can you see what the logs say?

Regards,