Hi i am able to retrive data from mysql and view on same html pgae but i want to retrive it other page but not working , pls help if anyone can


#1

.controller(‘recognizeCtrl’, function($scope, $http,$state,$ionicPopup,$stateParams) {
//$scope.user = $stateParams.tasks;
$scope.sendinfo = function(input) {
//var config = { params: { ic_no : $scope.ic_no }

// };

$http.get(“http://192.168.0.3:8000//test/driver.php?ic_no="+input.ic_no+"”). then(function (response) {

$scope.names = response.data.records;
 if($scope.names == '') {
            $ionicPopup.alert({
                title: "Error Message",
                template: '<p style="text-align:center">Sorry No record Found! You can Complain on the vehicle</p><br/>',
                    //+ '<a href="#/login" class="button button-full button-positive">Report Now</a>',
                    
                okText: 'Ok',
                okType: 'button-positive'
            });
        }

 })
}




  rocog.html
            <div class="list">
                <form ng-submit="sendinfo(input)" method="get" class="padding"> 
                  <div class="padding">
                      <label class="item item-input">
                         <input ng-model="input.ic_no" name="ic_no" type="number" placeholder="License Number" required> 
                      </label>
                   </div>
    <div class="padding">
        <button type="submit"  class="button button-block  button-balanced">Submit</button> 
    </div>
    
  </form> 

recogoutput.html

        <div class="item" ng-repeat="x in names">
             Driver Name : {{ x.Name }}
             <span ng-if="!x.Name">Sorry no record found</span>
        </div>
        <div class="item">
            License No : {{ x.License_no }}
        </div>
        <div class="item">