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.
how use javascript origin addeventlistener in angularjs or disable strange behaviour?
thanks.
Comments
Post a Comment