fix(carousel): add client side check before calling window to prevent reference error in angular ssr (#6474)
fix(carousel): add client side check before calling window to prevent reference error in angular ssr (#6474)

* fix(carousel): add platform check on window call

When on Angular SSR, as window is undefined server-side, we need to prevent the call to window when the platform is "server" and to allow it when the platform is "browser".

* fix(carousel): change platformId type for linting

Co-authored-by: Marine GRILLOT <1fd1b4516473c36c8fb30bbf7c4490fc20419a10@afiliza.com>
valor-software/ngx-bootstrap,valor-software/ngx-bootstrap,valor-software/ngx-bootstrap,valor-software/ngx-bootstrap