Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the Scroll Top position of perfect scroll in angular 2 #29

Closed
chandrakailash1993 opened this issue Mar 19, 2017 · 2 comments
Closed
Labels

Comments

@chandrakailash1993
Copy link

chandrakailash1993 commented Mar 19, 2017

Hi

I want to update the scroll position from top when i show hide a component/div in angular 2.

I tried to this way, which did not worked.

@ViewChild('messagesContainer') messagesContainer: ElementRef;
this.messagesContainer.elementRef.nativeElement.scrollTop = 170;

Is there any update for this.

Regards

Kailash

@sconix
Copy link
Contributor

sconix commented Mar 22, 2017

Both the perfect scrollbar directive and component has scrollTo(position) / scrollToTop(offset) / scrollToBottom(offset) methods.

@sconix sconix closed this as completed Mar 26, 2017
@sconix sconix added the invalid label Mar 10, 2018
@AKHACHKHOUCH
Copy link

is it valide in angular 10 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants