I am trying to use virtual scrolling feature in angular 7 with universal 
(server side rendering) and I am getting the following error -

ReferenceError: window is not defined
    at new VirtualScrollerComponent (/sample/universal/dist/server.js:150466:23)
    at createClass (/sample/universal/dist/server.js:26257:20)
    at createDirectiveInstance (/sample/universal/dist/server.js:26126:20)
    at createViewNodes (/sample/universal/dist/server.js:27352:36)
    at callViewAction (/universal/dist/server.js:27668:13)
    at execComponentViewsAction (/sample/universal/dist/server.js:27587:13)
    at createViewNodes (/sample/universal/dist/server.js:27380:5)
    at createRootView (/sample/universal/dist/server.js:27266:5)
    at Object.createProdRootView [as createRootView] 
(/sample/universal/dist/server.js:27778:12)
    at ComponentFactory_.create (/sample/universal/dist/server.js:25605:29)

Any idea how I can work around this issue?



-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to