JSFiddle - React, Tailwind, and code Playground

by amitkumar31

HTML

<div ng-app="myApp" ng-controller="TemparRestController">

  <span>897{{devices}}</span>

</div>

JavaScript

(function() {
  angular.element(document).ready(function() {

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

    app.controller("TemparRestController", function($scope, fetchMeasurments, serviceHandler, poollingRESTFactory, $http) {

 
        $http.get('https://tempar.adamos.com/inventory/managedObjects?  fragmentType=c8y_IsDevice', {
          headers: {
            "Authorization": "Basic YW1pdC5rdW1hcjMxQGR4Yy5jb206UGFzc3dvcmQtMg==",
            'Content-Type': 'application/json',
            'Accept': 'application/json'
          }
        }).then(function(response) {
          $scope.devices = response.data.managedObjects;
        });
 

    });


    angular.bootstrap(document, ['myApp']);
  });
}());