Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

States of loading similar to ngx-loadable #3

Open
mohammedzamakhan opened this issue Feb 28, 2019 · 1 comment
Open

States of loading similar to ngx-loadable #3

mohammedzamakhan opened this issue Feb 28, 2019 · 1 comment

Comments

@mohammedzamakhan
Copy link

I recently published a library which does similar to af-lazy, but has more features. I would love to see similar features in af-lazy too

https://medium.com/@zamamohammed/announcing-angular-loadable-ngx-loadable-2-2kb-4ef7e6321784

Features of ngx-loadable

  • Lazy load any ng module
  • No need to provide the whole path
  • Can be preloaded
  • Can show Loading message
  • Can show Error message
  • Set a timeout period to show a timedOut message
  • Small : 2kB only
  • Makes app smaller and faster
  • Service to preload multiple modules

ngx-loadable

@Brocco I see that you created a PR for converting this af-lazy component to a directive. I was also considering to use a directive (in fact in the early stages of ngx-loadable, I did create a directive for basic use case, but then didn't wanted to have both directive and a component for same purpose). Do you think a directive would be able to do all of the above things (showing different states)?

@andreElrico
Copy link

I think thats awesome. Do we have any way currently to react to errors currently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants