I have an object coming from database
tabletName.1.atablet tabletName.2.btablet tabletName.3.ctablet
where atablet, btablet and ctablet are tablet names.
How can convert it into an array tabletName:
index 0 : atablet
index 1 : btablet
index 2 : ctablet
I want to use the array as
ngmodel="tabletName[0]"
ngmodel="tabletName[1]"
ngmodel="tabletName[2]"
Please help.
I am new to angularjs and hence unclear question. Please remove the downvote for question.
I solved the issue as : used an array of objects with ng-repeat.
The question is not proper so you can ignore.