How to use javascript origin addEventListener in angularjs -


i write origin javascript before load angularjs this:

<ng-app>   <ng-controller>     <element />   </ng-controller>   <script>     element.addeventlistener('click', some_function);   </script>   <script src='angularjs.js'></script> </ng-app> 

this code add feature before angularjs init when mobile network 2g/3g. hope element.click event can run whatever angularjs init.

i found angularjs replace element event html.ng-scope after loaded.

dont-use-angular enter image description here

how use javascript origin addeventlistener in angularjs or disable strange behaviour?

thanks.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -