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 (eg. in DOM of template content). $scope.$watch('value', function (){....}) is working “before” render (DOM of template is not available yet). Thanks.
How can run a method $scope.myWork() after render template? I want to set the
Share
Create a directive that runs your code in the link function.
The link function is called after the template is built.
See ng-click to get an idea.