angularjs - Angular app only loads on page refresh -


i building wordpress site page angular app. working until (and can't recall change broke it), app not load when arrive @ page via link (angular loaded , code snippet below processed, nothing logged), does work if refresh page.

i've backed out real code leave:

angular.module("af2015app", []) .controller("testctrl", function() {     console.log("test test"); }); 

and commented out in html except

<div ng-app="af2015app" class="app">     <p ng-controller="testctrl">use ...!</p> </div> 

i'm @ loss how debug these circumstances. i'm not loading pages via ajax.

thanks ideas everyone. had go @ debugging , discovered that, after turning off script tag angular, angular still present. gave me idea @ batarang and, after deactivating that, working again. perhaps answer someday. needless don't know underlying problem was.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -