I am using angular js -1.2
I have a html page which is having input type =text
<input type="text" ng-model="todo.policy.polno" size="16"
placeholder="policy no" ng-value="{{todo.policy.polno}}">
my DATA looks like this
$scope.todo= [
{
"policy": {
"polno": "VPC000111568954",
"product code": "VPC",
"date": "17/02/1990",
........
}
]
on load i want to display "VPC000111568954" in textbox1 "vpc" in textbox2 etc there are many text boxes and and i have object inside object also in JSON