Angular 1 and Angular 2 Integration

How to call Restful APIs/Services in AngularJs?

In the AngularJs, we can use following methods to achieve this.
1.      $http Service
2.      $resource Service
3.      Rest Angular

The example as,

<!DOCTYPE html>

  <script src=""></script>
  <script src=""></script>
    var appController = function($scope, $http) {
        .success(function(response) {
          $scope.Info = response;
        .error(function(response) {
          $scope.message = "Error!!";

  <div ng-app ng-controller="appController">
    <h3>How to call Restful APIs/Services in AngularJs?

      IP - {{Info.ip}}
      <br/> About - {{Info.about}}
    <a href='' target='_blank'>For more..</a>


The output as,


Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog -
My Books - Book 1 and Book 2 Powered by Blogger.