Reputation: 437
I am using AngularJS in concert with Django, which necessitated changing the interpolation's template tags, which I have changed from Django-esque {{
and }}
to ASP or Underscore-ish <%
and %>
.
app.config(function ($interpolateProvider) {
$interpolateProvider.startSymbol('<%').endSymbol('%>');
}
This works excellently in all browsers I have tested except for Internet Explorer 9. It's not that the data is not loading with $resource, there's a couple of <img>
tags with ng-src
set from that retrieved data and it displays properly, and some <input>
elements with ng-model
also bound to some of the data that works properly as well. It's only the <% template %>
tags that don't work.
I can't switch back to default template tags as that will conflict with Django. I am using a fairly old version of Django that does not have a {% verbatim %}
tag.
I'm baffled.
Upvotes: 2
Views: 364
Reputation: 6871
Have you tried symbols other than <%
and %>
? IE may just be picky about those.
Upvotes: 1