How to use ons-loading-placeholder?
-
How to use ons-loading-placeholder any idea?
I just put a
div
in the page?<div ons-loading-placeholder="page.html"> Loading... </div>
But how to control when to show or hide it when I need it?
ng-show
?
-
@wetfeet I think
ons.resolveLoadingPlaceholder()
is the only way to interact with that. This is a feature that comes from v1, when everything was an AngularJS directive. To be honest I haven’t use it at all :sweat_smile:
-
OK. Anyway, what is the easiest way to show a busy loading popup like the one below? Use ons-modal? I haven’t been able to easily create the white div box and spinning circle icon.
-
@wetfeet check out this example.