Revision 60943
Added by Konstantinos Triantafyllou almost 3 years ago
app.component.ts | ||
---|---|---|
13 | 13 |
import {Subscriber} from "rxjs"; |
14 | 14 |
import {Meta} from "@angular/platform-browser"; |
15 | 15 |
import {properties} from "../environments/environment"; |
16 |
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll"; |
|
16 | 17 |
|
17 | 18 |
@Component({ |
18 | 19 |
//changeDetection: ChangeDetectionStrategy.Default, |
... | ... | |
43 | 44 |
</span></a> |
44 | 45 |
</cookie-law> |
45 | 46 |
<bottom *ngIf="isClient && properties" [properties]="properties"></bottom> |
46 |
|
|
47 | 47 |
` |
48 |
|
|
49 | 48 |
}) |
50 | 49 |
export class AppComponent { |
51 | 50 |
isClient: boolean = false; |
... | ... | |
59 | 58 |
subscriptions = []; |
60 | 59 |
|
61 | 60 |
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, |
62 |
private router: Router, private userManagementService: UserManagementService, |
|
61 |
private router: Router, private userManagementService: UserManagementService, private smoothScroll: SmoothScroll,
|
|
63 | 62 |
private configurationService: ConfigurationService, private _meta: Meta) { |
64 | 63 |
this.userMenuItems.push(new MenuItem("", "My profile", "", "", false, [], [], {})); |
65 | 64 |
this.userMenuItems.push(new MenuItem("", "My ORCID links", "", "/my-orcid-links", false, [], [""], {})); |
... | ... | |
106 | 105 |
}); |
107 | 106 |
this.configurationService.clearSubscriptions(); |
108 | 107 |
this.userManagementService.clearSubscriptions(); |
108 |
this.smoothScroll.clearSubscriptions(); |
|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
buildMenu() { |
Also available in: Unified diff
[Explore | Trunk]: Add smooth scroll