Question is simple I just want to check whether the hyperlink is loaded fully or not inside the ng-click event.
HTML:
<div ng-click='clicked()'>Click me</div>
JS:
$scope.clicked= function() {
window.location='https://firstlink.com';
//
//when above wesbite page is fully loaded then go to below code and load the next link
//
window.location='https://secondlink.com';
}
NOTE:
I don't want to check whether the view is loaded or not, I want to check whether the URL is completely loaded or not. I've checked many articles and posts regarding this but all I'm getting is that how to check whether your angularjs application is loaded or not. I want to get an approach with which I can check that these URLs are loaded fully or not. Below are some questions I already gone through:
Post render call for AngularJs
Execute AngularJs controller function on page load