I am building a wordpress site with a page that is an angular app. It was working until recently (and I can't recall which change broke it), but now the app does not load when I arrive at the page via a link (angular is loaded and the code snippet below processed, but nothing is logged), but it <strong>does work</strong> if I then refresh the page.
I've backed out all the real code to leave:
And commented out everything in the HTML except
I'm at a loss as to how to debug these circumstances. I'm <strong>not</strong> loading pages via AJAX.
I've backed out all the real code to leave:
Code:
angular.module("af2015App", [])
.controller("TestCtrl", function() {
console.log("test test");
});
And commented out everything in the HTML except
Code:
<div ng-app="af2015App" class="app">
<p ng-controller="TestCtrl">Use the ...!</p>
</div>
I'm at a loss as to how to debug these circumstances. I'm <strong>not</strong> loading pages via AJAX.