I have just started learning Angular development. I have a task to include below add to homescreen jquery plugin inside one of my pages.
http://cubiq.org/add-to-home-screen
I am trying to do it as below in my home.component.ts file
ngAfterViewInit() {
$.getScript('addtohomescreen.js');
addToHomescreen({
skipFirstVisit: false,
lifespan: 0,
maxDisplayCount: 3,
displayPace : 0
});
}
I am getting below error in my console.
./src/app/home/home.component.ts:175:9
TS2304: Cannot find name 'addToHomescreen'.
can anyone help me to implement this correctly in my ts file?