idealistic
idealistic

Reputation: 191

AngularJS Data Binding issue on Internet Explorer compatibility mode using Curly Braces

I followed http://docs.angularjs.org/guide/ie when developing my web page. But in IE8/9/10 with compatibility Mode, the page is showing up with {{}} and the data is not getting binded. I am using angular-1.0.5.min.js version and have the following.

Please help on how to resolve this issue.

Upvotes: 0

Views: 3120

Answers (2)

Nicholas Daley-Okoye
Nicholas Daley-Okoye

Reputation: 2397

When I find something only works with developer tools open, the usual culprit turns out to be that I'm using console.log(...).

Is it possible that you are using console.log() or similar calls that are only available when the developer tools are open?

When developer tools aren't open, console is undefined, and scripts fall over when you call console.log.

If this is the problem and you want to keep the log calls in your code you could stub out console.log like:

window.console = window.console || {};
window.console.log = window.console.log || function() {};

Upvotes: 11

user554180
user554180

Reputation:

Try bootstrapping angular manually

<script>
  $(document).ready(function() {
    angular.bootstrap(document);
  });
</script>

Upvotes: 0

Related Questions