Ns + js
Work in nativescript playground.
Copied from here carousel https://play.nativescript.org/?template=play-js&id...
The carousel is not in the main window. When you run the application and move to the window with the carousel everything works correctly. When you return to the main window and return to the carousel, an error occurs: