JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.9.3/typeahead.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<div ng-app ng-controller="Controller">
    <ul style="margin:0;padding:0;list-style:none;">
      <li ng-repeat="number in numbers">
        <input type="number" ng-model="number" />
      </li>
    </ul>
    <form ng-submit="add()">
      <input type="number" ng-model="newNumber" />
    </form>
</div>

JavaScript

$.ajax({
    url: 'http://prescription.goldencabinet.sites.entersubtext.com/store/products/api/products',
    dataType: 'json',
    success: function(data) {
        console.log(data);
     }
});



function Controller($scope) {
    $scope.outputs = {};
    $scope.inputs = [{
        type: "text",
        name: "first_field",
    }, {
        type: "text",
        name: "second_field",
    }, {
        type: "checkbox",
        name: "third_field",
    }];

}