I am loading some scripts in my project using angular loadscript. I have to reject the call after some ideal time so that I can show errors on my dashboard with project load.
angularLoad.loadScript(script)
.then(function () {
$scope.err = false;
})
.catch(function () {
$scope.err = true;
});
One solution is - apply timeout. Any other solutions?