If you really need it in array, just do this in your controller:
$scope.data = [0];
and in HTML do
It will fill that array value automaticaly as you type something in INPUT, id will be always at first position in array.
Or you can handle it with object
In controller:
$scope.data = {};
in HTML