-
Notifications
You must be signed in to change notification settings - Fork 41
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
Does work in Angular #65
Comments
What about if you change the constructor to:
I believe Angular is the one who initializes the Injectable objects, so you should get the instance from the constructor. I hope it works. |
@relez unfortunately setting it this way will not work because LoadingIndicator is not an Angular service. I too am having issues getting it to work in Angular 😢. I noticed that the @dottodot did you managed to get it working with Angular? References:
|
Hi @benedictkhoo, I have it working on my angular projects injected in my components, in my app.module.ts I have:
Then, inside my components, I inject it:
This is working fine since day ONE. I hope it helps. |
Thanks for the quick update @relez ! Didn't thought of setting it up as a provider in an NGModule. Let me try it and get back to you. |
I've now tried all the suggestions and still not seeing a loading indicator. |
This plugin has now been deprecated and taken over by nStudio, LLC. You can install with tns plugin add @nstudio/nativescript-loading-indicator |
Not sure if it just Angular or a general problem but when I call
.show()
I don't get a loading indicator. Here's my service.The text was updated successfully, but these errors were encountered: