import { Component , OnInit } from '@angular/core' ; @ Component ( { selector : 'app-basic' , templateUrl : './basic.component.html' , styleUrls : [ './basic.component.scss' ] } ) export class BasicExampleComponent implements OnInit { config ; fullpage_api ; constructor ( ) { this . config = { licenseKey : 'YOUR LICENSE KEY HERE' , sectionsColor : [ '#7BAABE' , 'whitesmoke' , '#7BAABE' , 'whitesmoke' , '#7BAABE' ] , anchors : [ 'p1' , 'p2' , 'p3' , 'p4' , 'p5' ] , navigation : true , } ; } ngOnInit ( ) { } getRef ( fullPageRef ) { this . fullpage_api = fullPageRef ; } }