Skip to content Skip to sidebar Skip to footer

Using Waypoints.js In Angular 4 Application

Hey Im trying to use Waypoints.js in my angular application.. I cant seem to get it to work angular-cli.js 'scripts': [ '../node_modules/waypoints/lib/noframework.waypoints.min

Solution 1:

In app.component.ts replace

declare var Waypoint: any;

with

declare const Waypoint: any;

will do the trick.

P.S: I am using Angular 7 at the moment and this solution works for me.


Solution 2:

Install Waypoints types for installing type for waypoint.

import * as Waypoint from 'waypoints'.

I hope it might helps.


Post a Comment for "Using Waypoints.js In Angular 4 Application"