This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Problem with $viewContentLoaded #1657
Closed
Description
Hello.
Sometimes I need make ajax request with fully rendered html right after rendering.
I found comment #734 (comment) with necessary event, but $viewContentLoaded
doesn't work as I expect.
$scope.$on('$viewContentLoaded', function () {
checkPageIsRendered();
setTimeout(function () {
checkPageIsRendered();
document.write(statuses.join(' '));
}, 100);
});
That code prints false true
— http://embed.plnkr.co/BZl11W
If it is not bug but feature please tell me how to subscribe to right event?