Project

General

Profile

« Previous | Next » 

Revision 60945

[Monitor | Trunk]: Add smooth scroll

View differences:

app.component.ts
11 11
import {BehaviorSubject, Subscriber} from "rxjs";
12 12
import {StakeholderService} from "./openaireLibrary/monitor/services/stakeholder.service";
13 13
import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component";
14
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll";
14 15

  
15 16
@Component({
16 17
  selector: 'app-root',
......
61 62
  private subscriptions: any[] = [];
62 63
  
63 64
  constructor(private  route: ActivatedRoute, private propertiesService: EnvironmentSpecificService,
64
              private router: Router, private stakeholderService: StakeholderService,
65
              private router: Router, private stakeholderService: StakeholderService, private smoothScroll: SmoothScroll,
65 66
              private userManagementService: UserManagementService) {
66 67
    this.subscriptions.push(router.events.forEach((event) => {
67 68
      if (event instanceof NavigationStart) {
......
103 104
    });
104 105
    this.userManagementService.clearSubscriptions();
105 106
    this.stakeholderService.clearSubscriptions();
107
    this.smoothScroll.clearSubscriptions();
106 108
  }
107 109
  
108 110
  public buildMenu() {

Also available in: Unified diff