Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • How to make ajax hit in Angular JS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 218
    Comment on it

    Hello Reader's if you want to get data from another webpage then you have to make ajax hit. Angular JS also provide you to get your data and redesign it into it's script. Then you can generate the design itself. Let's see it's working example as below:-

    <!DOCTYPE html>
    <html >
    <script src=""></script>
    <div ng-app="myApp" ng-controller="customersCtrl"> 
      <tr ng-repeat="x in names">
        <td>{{ x.Name }}</td>
        <td>{{ x.Country }}</td>
    var app = angular.module('myApp', []);
    app.controller('customersCtrl', function($scope, $http) {
       .then(function (response) {$scope.names =;});

    Here in the code above data is passing through customers_mysql.php page and we have desing it into table.Now the final data on the current page will be nice formated and will be shown in tables.

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: