You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm curious if there's a way to check if a module has already been loaded? I see there's a private function moduleExists() that does this, but it's not accessible from outside the module. Maybe a new method could be exposed to support this, e.g. $ocLazyLoad.isLoaded('my.module')?
My use case is that I need to recompile a directive template after lazy-loading a module containing some UI components. I'd like to set it up so it only does this if the module has not yet loaded.
Thanks!
The text was updated successfully, but these errors were encountered:
I was looking for the same thing last week and come across several try/catch based solutions. Your internal method with additional regex inside was the prettiest to be fair.
I'm curious if there's a way to check if a module has already been loaded? I see there's a private function moduleExists() that does this, but it's not accessible from outside the module. Maybe a new method could be exposed to support this, e.g. $ocLazyLoad.isLoaded('my.module')?
My use case is that I need to recompile a directive template after lazy-loading a module containing some UI components. I'd like to set it up so it only does this if the module has not yet loaded.
Thanks!
The text was updated successfully, but these errors were encountered: