To avoid bug with markers update is it required to use '{}' #239

Description
First of all I saw this example here: http://angular-ui.github.io/ui-leaflet/examples/0000-viewer.html#/mixed/overlays-markers-nested-no-watch-example
I am using this directive and one of my software features require that sometimes after initial load of markers I update all markers with new ones.
What happens is that data between markers is somehow mixed and not same as model that I provided - updating the markers doesn't work.
I resolved this issue with this:
leafletData.getDirectiveControls().then(function (controls) {
var markers = addressPointsToMarkers(data)
controls.markers.create(markers ,$scope.markers);
$scope.markers = markers;
});
But issue is completely resolved when I changed my array ('[]')
of objects with objects ('key: {data: data}',key: {data: data}',key: {data: data}'...)
.
This makes another issue and that is some angular features like $filter
are not possible anymore (at least not in the angular way).
So, my question is:
Is it necessary to have object ('{}')
for markers or it is possible to use this workaround with standard array ('[]')
?
I need confirmation for this, please, it is very important to know this.