Topic: An instance of PageScrollService already exists, usually including one provider should be enough, so double check.
When I click the button it must go to the top of the page.I'm using SMOOTHSCROLL for smother tranisition effect.
For the First time it works as expected.But when I refresh the page and check it ends in error as:
An instance of PageScrollService already exists, usually including one provider should be enough, so double check.
Resources (code snippets)
<div class="content" role="main" id="top">...`</div>` <button aria-label="Button" class="btn btn-floating btn-large color-background waves-light back-to-home" id="scrollBtn" mdbPageScroll href="#top" mdbWavesEffect pageScrollOffset="75" [pageScrollDuration]="950"> <i class="fas fa-arrow-up"></i> <button>
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 9.3.1
- Device: Lenova
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No