AngularJS Internet Explorer 9

后端 未结 3 1633
难免孤独
难免孤独 2021-02-07 08:27

I have small trouble with angularjs and internet explorer9. It look like, that angularjs is not loading correctly. If I starting ie with my application, nothing will work, but i

相关标签:
3条回答
  • 2021-02-07 09:03

    Use $log service. It will be injected in your controllers. https://docs.angularjs.org/api/ng/service/$log

    0 讨论(0)
  • 2021-02-07 09:07

    Are you making a call to console.log in your code? If yes, this will not be available in IE unless you open the dev tools.

    0 讨论(0)
  • 2021-02-07 09:17

    I run in to the same issue and what fixed it was creating window console in the parent controller before using it. You can add the following code and try.

    window.console = window.console || {};
    window.console.log = window.console.log || function() {};
    
    0 讨论(0)
提交回复
热议问题