Hi,

I have read this topic:

http://stackoverflow.com/questions/24040985/scroll-to-top-of-div-in-angularjs#new-answer

But I cannot apply it in my solution:

How to scroll a <div> after it appears? I have an invisible div, that is 
created by a controller I think. It has a scrollbar. If it is shown, I have 
to scroll to the 3rd element.

I have the template, I inserted this scroll-to-top-when="items_changed".
I have put this "$scope.$broadcast("items_changed")" into the controller.

But what is "scroll-to-top-when"? Is it a keyword?

I try to access my element as: 
$document.find(".mycsscontrolname").scrollLeft = 50;

Is it ok? How to use the code above?


Tamas

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to