loadEngineersList( function(engineers) {$scope.engineers = engineers; // data propagation$('#bugsTable a:first').click(); // click});But clicking doesn't work, because link doesn't exists at this moment and model isn't rendered yet.I have on click event that loads other data, so what is right way to activate loading and link selection?Thanks,Mikhail.
$scope.engineers = engineers; // ok, we get Data let's render them on page, $scope.engineers is bound to template$('#bugsTable a:first').click(); // now I need to click on created link, I expected that link was created on line above, but it wasn't. So what is the right way to make "click" in this case?});
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/Wbc-KHSQvaU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
$http.get('engineers/all').success(function(data) { // let's load some data
$scope.engineers = engineers; // ok, we get Data let's render them on page, $scope.engineers is bound to template
$timeout(function () {
$('#bugsTable a:first').click(); // now I need to click on created link, I expected that link was created on line above, but it wasn't. So what is the right way to make "click" in this case?
},0);
});