JSFiddle - React, Tailwind, and code Playground

by gordonk66

HTML

<div ng-app ng-controller="MyController">
    <div ng-repeat="(key, value) in todo[0].policy">
        <label for="{{key}}">{{key}}</lable>
        <input name={{ key }} type="text" value="{{ value }}" size="16" placeholder="{{key}}"/>
    </div>
</div>

JavaScript

function MyController($scope) {
    console.log('yo');
    $scope.todo = [{
        "policy": {
            "polno": "VPC000111568954",
                "product code": "VPC",
                "date": "17/02/1990",
            /*"item": [{
                "00001": [{
                    "V1": "po",
                        "P1": "po",
                        "C1": "po"
                }]*/
        },
        somethingelse: {
            "00002": [{
                "V2": [{
                    "covercode": "V2"
                }],
                    "P2": [{
                    "covercode": "P2"
                }],
                    "C2": [{
                    "covercode": "C2"
                }]
            }]
        }
    }];
}