Is there a way to stop AngularJS from executing any actions during the initial page load? When a user accesses a page, the first content is delivered via PHP so AngularJS doesn't need to fetch content that's already present.
I tried using $locationChangeStart
and calling preventDefault()
on the event, but this ends up removing the initial content, leaving only a navigation bar and an empty ng-view
div.