Sha256: 947f252042fb81baf6229ce1671e12646145343002fe6442ca03bfb5b9864a08

Contents?: true

Size: 905 Bytes

Versions: 1

Compression:

Stored size: 905 Bytes

Contents

<!DOCTYPE html>
<html>
<head>
    <title>Exchange extractors</title>
    <script src="js/angular.min.js"></script>
</head>
<body>
<h1>Extract from response</h1>

<div ng-app="codeDemo" ng-controller="extract">
    <p>
        <b>Sample response</b>
        <p> {{ sampleData }}
        </p>
    </p>
    <p>Method:
        <select ng-model="index">
            <option ng-repeat="option in myData" value="{{$index}}">{{option.desc}}
            </option>
        </select>
    </p>
    <p>Code: {{ myData[index].method }}</p>
    <p>Result: {{ myData[index].result }} </p>
</div>
<script>
    var app = angular.module('codeDemo', []);
    app.controller('extract', function($scope, $http) {
        $http.get("extract.json").then(function(response) {
            $scope.myData = response.data.methods;
            $scope.sampleData = response.data.sampleData;
        });
    });
</script>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soaspec-0.2.16 demo/extract.html