AngularJS Internet Explorer 9

折月煮酒 提交于 2019-12-03 05:14:39
idealistic

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() {};

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!