An example of the data that I am using:
[
{
objectId: "lBrweaVVKd"
url: "http://files.parsetfss.com/5f0d29c3-6b71-4029-8bd8-c2db01a82bbc/tfss-cf720b16-08f9-46ed-b23e-1e626aImage"
},
{
objectId: "lBrweaVVKd"
url: "http://files.parsetfss.com/5f0d29c3-6b71-4029-8bd8-c2db01a82bbc/tfss-cf720b16-08f9-46ed-b23e-1e626aImage"
}
]
and using an ng-repeat
in my template like so:
<div ng-repeat="image in activeExercise.images track by $index" ng-model="activeExercise.images">
<img ng-if="isNumber(image)" src="http://file.s3.amazonaws.com/medium/{{image}}.jpg" />
<img ng-if="!isNumber(image)" src="{{image.url}}"></div>
</div>
(I return my images from two locations, one is local and is just an image, and the other in parse.com which is a URL hence my ng-if
unsure if this is causing my problems?)
When I push this into an array the ng-repeat
is producing $$hash
.
The problem with this is Parse.com rejects anything with a $
in it
== EDIT ==
This is a sample of code where track by $index
does not produce $$hash
<ion-slide ng-repeat="sliderimage in activeExercise.images track by $index">
<div ng-if="isNumber(sliderimage)" image-lazy-src="http://rehabgurufiles.s3.amazonaws.com/medium/{{sliderimage}}.jpg"></div>
<div ng-if="!isNumber(sliderimage)" class="modalSliderThumbnail" image-lazy-src="{{sliderimage.url}}"></div>
</ion-slide>
== EDIT 2 == The help a little more:
This receives a number :
<div ng-if="isNumber(sliderimage)" image-lazy-src="http://urufiles.s3.amazonaws.com/medium/{{sliderimage}}.jpg">
This receives an object as described above:
<img ng-if="!isNumber(image)" src="{{image.url}}"></div>