
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
angular-fullpage
Advanced tools

Official Angular wrapper for the fullpage.js library.
npm install @fullpage/angular-fullpage
This will install the Angular wrapper as well as fullpage.js library.
If you want to use angular-fullpage to develop non open sourced sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Which means, you won't have to change your whole application source code to an open source license. [Purchase a Fullpage Commercial License]
If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use fullPage under the terms of the GPLv3.
The credit comments in the JavaScript and CSS files should be kept intact (even after combination or minification)
Read more about fullPage's license.
// app.module.ts
import { AngularFullpageModule } from 'angular-fullpage';
@NgModule({
imports: [
BrowserModule,
AppRoutingModule,
AngularFullpageModule //*** added
]
})
You should import the fullpage.js stylesheet on your style.scss or component.scss:
/* styles.scss or app.component.scss */
@import url(~fullpage.js/dist/fullpage.min.css);
Then use the directive on your component:
// app.component.ts
export class AppComponent {
config: any;
fullpage_api: any;
constructor() {
// for more details on config options please visit fullPage.js docs
this.config = {
// fullpage options
licenseKey: 'YOUR LICENSE KEY HERE',
anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'],
menu: '#menu',
// fullpage callbacks
afterResize: () => {
console.log("After resize");
},
afterLoad: (origin, destination, direction) => {
console.log(origin.index);
}
};
}
getRef(fullPageRef) {
this.fullpage_api = fullPageRef;
}
}
Example of HTML:
<!-- app.component.html -->
<div fullpage id="fullpage" [options]="config" (ref)="getRef($event)">
<div class="section">Some section1</div>
<div class="section" (click)="fullpage_api.moveSectionDown()">Some section2</div>
<div class="section">
<div class="slide">Slide 2.1</div>
<div class="slide">Slide 2.2</div>
<div class="slide">Slide 2.3</div>
</div>
<div class="section" (click)="fullpage_api.moveTo('secondPage', 2)">Some section4</div>
</div>
In order to make use of fullpage.js extension you'll have to add the extension file to angular.json.
For example, if we want to use the scrollHorizontally extension we will have to add the path to our fullpage.scrollHorizontally.min.js file on the scripts array:
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": [
"src/assets/fullpage.scrollHorizontally.min.js"
],
Then pass the required options to fullPage.js. In this case scrollHorizontally:true.
Same procedure than the use of extensions detailed above.
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": [
"node_modules/fullpage.js/vendors/scrolloverflow.min.js"
],
If you want to update fullPage.js with new changes in the DOM call the build() method after making those changes.
An example can be seen on the dynamic-changes example:
this.renderer.appendChild(this.fp_directive.nativeElement, section);
this.fullpage_api.build(); // <-- here
You can check some examples on the src folder.
Found an issue? Have an idea? Check out the Contributing guide and open a PR
easingcss3 value)FAQs
Official Angular wrapper for fullPage.js
The npm package angular-fullpage receives a total of 11 weekly downloads. As such, angular-fullpage popularity was classified as not popular.
We found that angular-fullpage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.