How do I use ngx-loading in my standalone angular app ?
There’s no app.module to import it. I can’t import it in the component itself because I get “Component imports must be standalone components, directives, pipes, or must be NgModule” error. And if I just declare it on constructor I get “‘ngx-loading’ is not a known element” in the template.
How do I use it in standalone apps ?
it’s in my app.config.ts? I can’t find the ngx-loading providers or something like that.
I’ve tried use the NgxLoadingModule in my app.config.ts but it returns Injection errors.
Lucas Andrade is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.