title: Get data from php to angularjs doesnt working
body: <p>I'm new in Angular I want to get a SQL request from php script to angular, but I see only a big bulleted list and I dont know what is the problem.</p>
  
  <p>My html code:</p>
  
  <pre><code>.
  .
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.js"&gt;
  &lt;/script&gt;
  &lt;script src="../js/proc_list.js"&gt;&lt;/script&gt;
  .
  .
  .
  &lt;div align="center" id="prod_list" ng-controller="proc_list"&gt;
  
  &lt;ul&gt;
      &lt;li ng-repeat="processor in proc"&gt;
      {{processor.manufacturer}}
      &lt;p&gt;{{processor.description}}&lt;/p&gt;
      {{processor.price}}
      &lt;/li&gt;
  &lt;/ul&gt;   
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller code:</p>
  
  <pre><code>function proc_list($scope, $http){
  $http.post('../phps/get_proc_list.php').success(function(data){
          $scope.proc = data;
      });
  }
  </code></pre>
  
  <p>PHP code:</p>
  
  <pre><code>$received_data = file_get_contents("php://input");
  
  $objData = json_decode($received_data);
  
  require_once('login.php');
  .
  .
  //Connect to database and send query
  .
  .
   $data_requested = json_encode($data);
  
  echo $data_requested;
  </code></pre>
  
  <p>I tried to do similar like this link:<a href="http://www.cleverweb.nl/javascript/a-simple-search-with-angularjs-and-php/" rel="nofollow">http://www.cleverweb.nl/javascript/a-simple-search-with-angularjs-and-php/</a></p>
  
  <p>but its still not working. Anybody has any idea?
  Thank you</p>