JSFiddle - React, Tailwind, and code Playground

by oterral

HTML

<div ng-app="demo">
  <div ng-controller="MainCtrl">
      <input type="text" ng-model="fileContent"></input>
  </div>
</div>

<script>
      var module =angular.module('demo', []);
      module.controller('MainCtrl', function($scope, $http){
        
        // Angularjs doesn't handle onprogress event
              $http.get("/echo/xml?url=http%3A%2F%2Fogc.heig-vd.ch%2Fmapserver%2Fwms%3FSERVICE%3DWMS%26REQUEST%3DGetCapabilities%26VERSION%3D1.3.0",
              {})
              .success(function(data, status, headers, config) {
                $scope.fileResult = 'upload_succeeded';
                $scope.fileContent = data;
    //$scope.xml = (new DOMParser()).parseFromString(data);
              })
              .error(function(data, status, headers, config) {
                $scope.fileResult = 'upload_failed';
              });
              
        $scope.options = {};
        $scope.fileContent = "test";
      });
</script>