I am currently working with angularjs
and I am trying to figure out how to refresh the page only once when it loads. Here is what I have attempted so far:
<script>
app.cp.register('userProfileController', function ($window) {
debugger;
function reload() {
$window.location.reload();
}
reload();
});
However, when using this method, the page ends up refreshing multiple times instead of just once. What could be causing this issue?