Sam
Sam

Reputation: 14586

angularjs: how to set scroll position

I have a div element with the overflow-x style attribute set to `scroll .

I want to be able to set the scrollbar position by code. With jQuery I'd use the scrollRight() function.

What'd be the best approach with angular ?

Upvotes: 0

Views: 936

Answers (1)

sagie
sagie

Reputation: 1777

you should keep your JQ code for that and run it in the link function of your directive.

Upvotes: 1

Related Questions