-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Universal support for this library #5
Comments
@rsach thanks for reporting this I would be very appreciated if you make a pull request for this. |
the error is kind of the same |
hi, i did some changes in the directive to make it universal friendly `import { Directive, ElementRef, Input, Output, EventEmitter,Renderer,HostListener } from '@angular/core'; @directive({ @input() horizontal: boolean; sections: Element[] = []; constructor(el: ElementRef ,private renderer: Renderer,@Inject(PLATFORM_ID) private platform_id) {
} // setup list of sections // } ngAfterViewInit(): void{
} private listenScrollOn(el: HTMLElement | Window): void {
} static scrollTo(
} } |
@rsach can you make a PR, Pull Request, with that code? |
i'm trying to use this lib in a universal project . can you work around with the use of window object?
ReferenceError: window is not defined
The text was updated successfully, but these errors were encountered: