import { Component , OnInit } from '@angular/core' ; @ Component ( { selector : 'app-scrolloverflow' , templateUrl : './scrolloverflow.component.html' , styleUrls : [ './scrolloverflow.component.scss' ] } ) export class ScrollOverflowExampleComponent implements OnInit { config ; fullpage_api ; constructor ( ) { this . config = { licenseKey : 'YOUR LICENSE KEY HERE' , anchors : [ 'firstPage' , 'secondPage' , 'thirdPage' , 'fourthPage' , 'lastPage' ] , menu : '#menu' , scrollOverflow : true , sectionsColor : [ '#1bbc9b' , '#4BBFC3' , '#7BAABE' , 'whitesmoke' , '#ccddff' ] , afterLoad : ( origin , destination , direction ) => { } , afterRender : ( ) => { } , afterResize : ( width , height ) => { } , afterSlideLoad : ( section , origin , destination , direction ) => { } } ; } ngOnInit ( ) { } getRef ( fullPageRef ) { this . fullpage_api = fullPageRef ; } }