How can run a method $scope.myWork() after render template? I want to set the $scope.value and after that I need to change something with JQuery (e
I found this page when looking for a way to profile DOM rendering. I found a far simple solution which is working for my use case.
Attach an ng-init handler to the DOM element and in the handler function, use $timeout to yield execution. Example:
HTML:
JS:
$scope.foo = function() {
$timeout(function() {
// This code runs after the DOM renders
});
});