I have an angular model page
that has an array images
. In my template I have this:
<div slide="slide" ng-repeat="slide in page.images" active="slide.active">
and I have tried to have es5-shim.js
imported in all orders of precedence that can be. All other browsers render it correctly , except document mode IE8
(sharepoint 2010 forces this). In that I get:
TypeError: Object doesn't support this property or method<div class="item text-center ng-isolate-scope" active="slide.active" ng-repeat="slide in page.images" slide="slide" ng-transclude ng-class="{ 'active': leaving || (active && !entering), 'prev': (next || active) && direction=='prev', 'next': (next || active) && direction=='next', 'right': direction=='prev', 'left': direction=='next' }" ng-1398662894321="121">
The result is that inside that div, an <img ng-src="{{ slide.url }}"
image gets a bad URL.
If I remove es5-shim.js
I get also an error about not supported indexOf
for the same row. Weird thing is, ng-repeat is working elsewhere in the app where I use angular-treeview.
What type error is this, if not indexOf, and is there a way to fix it?
you are using "slide directive" => slide="slide" and another slide in ng-repeat="slide in page.images" they are conflicting.
one more suggestion, always prefix your directive. like ct-slide (ctSlide in javascript)