PeterStaev / nativescript-image-swipe

A NativeScript widget to easily :point_up_2: and :mag: through a list of images
Apache License 2.0
35 stars 21 forks source link

Plugin does not work when running AoT with Angular #21

Closed VladimirAmiorkov closed 6 years ago

VladimirAmiorkov commented 6 years ago

This plugin looks to not be supporting "Ahead of time compilation" when inside an {N} + Angular project. It would be great if this gets resolved as it basically makes using this plugin in production projects not possible.

VladimirAmiorkov commented 6 years ago

Hi @PeterStaev ,

After taking a closer look at the plugin and my project I noticed that I have not registered the custom element into the nativescript-angular registry as mentioned here in my main.aot.ts file. It would be great if the registry process is implemented inside the plugin itself, I know that may lead to peerDependencies of Angular when the plugin is used inside a non Angular project but still its better to not force the user to know about the custom registry. This is what we are doing inside the nativescript-pro-ui plugin.