These are chat archives for filearts/plunker

2nd
Apr 2017
Aakash Basnet
@idiosincrasia
Apr 02 2017 22:41

// Code goes here

var app = angular.module('jsbin', []);

app.controller('DemoCtrl', function($http) {

 var vm = this;

 var URL = "http://api.apixu.com/v1/current.json";

var request = {
   method: 'GET',
  url: URL,
  params: {
    q: 'Paris',
    mode: 'json',
    units: 'imperial',
    cnt: '7',
    key: 'd108b73f5b5e4863aa324230170204'
  }
};

  $http(request)
  .then(function(response) {
     vm.data = response.data;
  }).
   catch(function(response) {
   vm.data = response.data;
 });
 });
hi guys this is my javascript code where I am extracting all the data in the json file. I want to learn to extract only a specific information from the json file. Any idea how to do that?
//code goes here <!DOCTYPE html>
<html>
  <head>
 <script data-require="angularjs@1.5.8" data-semver="1.5.8"       src="https://opensource.keycdn.com/angularjs/1.5.8/angular.min.js"></script>
   <link rel="stylesheet" href="style.css" />
    <script src="script.js"></script>
     </head>

   <body ng-app="jsbin">
    <div ng-controller="DemoCtrl as vm">
    <pre>{{vm.data | json}}</pre>
      </div>
    </body>

     </html>