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


.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(“"+input.ic_no+"”). then(function (response) {

$scope.names = response.data.records;
 if($scope.names == '') {
                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'


            <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> 
    <div class="padding">
        <button type="submit"  class="button button-block  button-balanced">Submit</button> 


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