Angular ng-click in button in ie9

The directive ng-clickin the button only works in ie9 when the developer console opens.

<button class="btn btn-primary" type="button" 
        data-ng-click="go('/Edit')">Edit</button>

This works in other browsers, but in ie9 does not call the function gounless I open the developer console.

+4
source share
1 answer

Do you have console.logsomewhere in this feature? At least older versions of IE are in the habit of detecting only consolewhen the console is open, and without this definition, you will get a reference error that is conveniently hidden due to the console not being opened.

+2
source

Source: https://habr.com/ru/post/1536363/


All Articles