# IonicLoading succes promise fired before load is shown

**URL:** <https://forum.ionicframework.com/t/ionicloading-succes-promise-fired-before-load-is-shown/69201>\
**Category:** ionic-v1\
**Created:** [November 4, 2016, 4:48pm UTC](https://forum.ionicframework.com/t/ionicloading-succes-promise-fired-before-load-is-shown/69201 "2016-11-04T16:48:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartineNavara](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martinenavara/32/100571_2.png) [@MartineNavara](https://forum.ionicframework.com/u/MartineNavara)\
**Post date:** [November 4, 2016, 4:48pm UTC](https://forum.ionicframework.com/t/ionicloading-succes-promise-fired-before-load-is-shown/69201/1 "2016-11-04T16:48:36Z")

</div>

In a project I want to show the Load indicator before I navigate to the next view, to achieve this, I’m trying to use the following code:

```
$ionicLoading.show({
    hideOnStateChange: false,
    noBackdrop: true,
    templateUrl: 'components/capabilitymap/projectLoader.html'
}).then(function() {
    $state.go(stateName, params);
});

```

Sometimes the loader does show before the $state.go is fired, but sometimes it is not yet shown when this code is called. I’ve tried using the option delay 0, but this didn’t help.

How can I gaurantee that the Loading Indicator is shown before moving on the next page?

---

<div class="post-metadata">

**Author:** ![Rahms](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rahms/32/82607_2.png) [@Rahms](https://forum.ionicframework.com/u/Rahms)\
**Post date:** [February 22, 2017, 3:45pm UTC](https://forum.ionicframework.com/t/ionicloading-succes-promise-fired-before-load-is-shown/69201/2 "2017-02-22T15:45:40Z")

</div>

Hi Martine, have you ever come to a solution? We are stucked on the same problem! Thank you!

---

<div class="post-metadata">

**Author:** ![MartineNavara](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martinenavara/32/100571_2.png) [@MartineNavara](https://forum.ionicframework.com/u/MartineNavara)\
**Post date:** [February 22, 2017, 4:18pm UTC](https://forum.ionicframework.com/t/ionicloading-succes-promise-fired-before-load-is-shown/69201/3 "2017-02-22T16:18:58Z")

</div>

Hi Rahms, I wasn’t able to find a solution which works with the success promise.  
I currently don’t have access to the code in which I faced this issue. I think I used a different approach in which I didn’t need the loader. I’m sorry I can’t help you any further.
