Open GeorgeHulpoi opened 3 years ago
As you know, on Angular Universal the document or window doesn't exist. Importing the module will generate errors because of this.
var doc = document, win = window, KEYS = { ENTER: 13, SPACE: 32, LEFT: 37, RIGHT: 39 }, tnsStorage = {}, localStorageAccess = options.useLocalStorage;
Basically ngx-tiny-slider.service.ts should import tiny-slider when the platform is the browser.
ngx-tiny-slider.service.ts
As you know, on Angular Universal the document or window doesn't exist. Importing the module will generate errors because of this.
Basically
ngx-tiny-slider.service.ts
should import tiny-slider when the platform is the browser.