edusperoni / nativescript-ripple

NativeScript plugin to add Android Material Design Ripple effect to your layouts.
Apache License 2.0
52 stars 13 forks source link

[Webpack + angular] Ripple is not working #6

Closed echap closed 7 years ago

echap commented 7 years ago

Hi @bradmartin and all of you,

I'm trying to webpacking my app, and for an unknown reason, my ripples are not working anymore (the app compiles), but the ripple have no more visual effects and the bindings on it are not working (tap events).

Easily reproduceable with a new project with tns 2.5.2, ns webpack + this plugin on a random view

Any idea ?

echap commented 7 years ago

Short answer : The view registration in main.ts has also to be done in the main.aot.ts

Cheers!

mn-martin commented 7 years ago

Thank you @echap I was struggling for quite some time now and your comment was the solution!