title: How to pass URL parameter to controller
body: <p>I need to pass a URL parameter to the controller. On the below URL, I need to pass the <strong>ID</strong> parameter to the controller.</p>
  
  <p><a href="http://localhost/branch/more.php?id=20" rel="nofollow noreferrer">http://localhost/branch/more.php?id=20</a></p>
  
  <p>Pass the <strong>ID</strong> URL parameter to the controller that I have given below.</p>
  
  <pre><code>  app.controller('customersCtrl', function($scope, $http) {
    $http.get("message.php?id=").then(function (response) {
    $scope.myData = response.data.message;
    });
  </code></pre>
  
  <p>So, the <strong>message.php?id=Parameter ID Here</strong> must be like this.</p>