I really like the concept of the $ionicLoadingContent as documented. I want to be able to customize the $ionicLoading, but generalize it for all loading screens to keep it DRY. One thing I have noticed is that the docs are pretty minimal in this area. I was considering sending a PR to at least list the other options, besides template. I’m not sure how stable those options are, however.
My question: is anyone changing the defaults effectively? I tried chaining the constant described in the docs to my module and updating options like showBackdrop: false. In my controller in question, I have added $ionicLoading as a parameter to the function and I am calling bare $ionicLoading.show();. I do not see any change locally.
@Norwill Thanks for your reply. I think you are misunderstanding my question: I am asking about the $ionicLoadingConfigdocs here. I understand that one can edit $ionicLoading. What the docs intimate is that you can “Set the default options to be passed to the $ionicLoading service.”
This would leave me to believe that I could set the options in one place in a constant and not have to redefine the options everywhere I want to use the loader – I want to keep it D.R.Y.
I am asking if this is the case and if anyone has had any success setting the options on this service.
Was a misunderstanding, i dont use $ionicLoadingConfig, for keep it D.R.Y i create a service when define the setting to $ionicLoading and call from anywhere on my app.
@Norwill interesting! Would you mind posting a sample of what overriding the$ionicLoading looks like either here or in a codepen? That way anyone else who finds this thread (and I) can learn from what you’re doing.
Thanks!
I’m still curious if anyone has essentially done the same thing but with $ionicLoadingConfig