// 1) import PLATFORM_ID from '@angular/core', eg:import{PLATFORM_ID}from'@angular/core';// 2) Inject in the component constructor where you have to init the AOS, eg:constructor(@Inject(PLATFORM_ID)privateplatformId:Object)// 3) Wrap the AOS.init with this if statement, eg:if(isPlatformBrowser(this.platformId)){AOS.init();})
Please give feedback thanks
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm always getting errors like document. not found etc, probably because it tries to load the animations but document doesn't exists server side.
Alright try this please:
Please give feedback thanks