[Angular] Dealing with angular routing and initTE()? #2014
-
Angular/cli version: 13.3.9 I'm trying to load the "Ripple" class with the ES init method so that my buttons can have a ripple effect. It works fine when I'm putting Is there any way to load the Ripple for all the components in my shared project as illustrated in below diagram? So far I've tried to export the shared button-component, importing the shared.module to my root module and hoping it would fix the issue. Which it doesn't. Any idea on how I can make it work? In summary; I can't show my code as this is enterprise code but i'm trying to use ripple in a button using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Did you try to call the |
Beta Was this translation helpful? Give feedback.
I made a component called
te-initiator.component
, which sole purpose is to provide theinitTE({ Button, Ripple, Dropdown});
call, leaving out theallowReinits
option, so that it doesn't initiate the call several times. I'm then extending thiste-initiator.component
to every child that needs the ES init.This works i suppose, but it would rather feel better if the call is made once, even when dealing with angular routing.
Initiator:
Used in: