JSFiddle - React, Tailwind, and code Playground

by sortofbusy

HTML

<div ng-app="myApp">
<div ng-controller="myCtrl">{{response}}
    <br>
    <button ng-click="getText()">Get Text</button>
</div>
</div>

JavaScript

angular.module('myApp', [])
    .controller('myCtrl', function ($scope, $http) {
    $scope.response = '';
    $scope.lsmApiConfig = {
        params: {
            String: 'Matthew 1:1-10',
            Out: 'json'
        }
    };
    
    $scope.getText = function () {
        $http.get('https://api.lsm.org/recver.php', $scope.lsmApiConfig).then(function(response) {
            $scope.response = response;
    	});
    };
})