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.js"
]
app.component.ts
import { Component, OnInit } from '@angular/core';
declare var Waypoint: any;
export class OurTechnologyComponent implements OnInit {
constructor() {}
ngOnInit() {
//waypoints
const grinner = new Waypoint({
element: document.querySelector('.tech-section'),
handler: function () {
alert('hello');
}
});
}
Any help would be appreciated
Thanks!
edit
Ive installed Waypoints Types and have imported it import * as Waypoint from 'waypoints';
getting error [ts] file pathtofolder/@types/waypoints/index.d.ts is not a module