# Issue with ng-show and a-element rendering

**URL:** <https://forum.ionicframework.com/t/issue-with-ng-show-and-a-element-rendering/27956>\
**Category:** ionic-v1\
**Created:** [July 8, 2015, 5:43pm UTC](https://forum.ionicframework.com/t/issue-with-ng-show-and-a-element-rendering/27956 "2015-07-08T17:43:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yarre/32/78864_2.png) [@yarre](https://forum.ionicframework.com/u/yarre)\
**Post date:** [July 8, 2015, 5:43pm UTC](https://forum.ionicframework.com/t/issue-with-ng-show-and-a-element-rendering/27956/1 "2015-07-08T17:43:48Z")

</div>

Hi!

I am working on an app that uses ionic but I have a two bugs that I haven’t been able to sort out:

1. One is with ng-show - I usually hide objects until they have been fully loaded or something else happens. This works perfect in the browser or when emulating but when I run it on an iPhone it takes a while for the html-element to hide it self. Like this: [https://www.youtube.com/watch?v=jUIVZucgkNM&feature=youtu.be](https://www.youtube.com/watch?v=jUIVZucgkNM&feature=youtu.be)

2. My second issue is that I have an a-element that is rendered twice on the phone but works perfectly when emulating. Like this: [https://www.youtube.com/watch?v=S7HnkkejKj0&feature=youtu.be](https://www.youtube.com/watch?v=S7HnkkejKj0&feature=youtu.be)

Any help would be super!

---

<div class="post-metadata">

**Author:** ![darshanp](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@darshanp](https://forum.ionicframework.com/u/darshanp)\
**Post date:** [July 9, 2015, 8:20am UTC](https://forum.ionicframework.com/t/issue-with-ng-show-and-a-element-rendering/27956/2 "2015-07-09T08:20:48Z")

</div>

1. Try ng-cloak: [https://docs.angularjs.org/api/ng/directive/ngCloak](https://docs.angularjs.org/api/ng/directive/ngCloak)

2. Not seen the second issue I’m afraid.

---

<div class="post-metadata">

**Author:** ![yarre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yarre/32/78864_2.png) [@yarre](https://forum.ionicframework.com/u/yarre)\
**Post date:** [July 9, 2015, 7:01pm UTC](https://forum.ionicframework.com/t/issue-with-ng-show-and-a-element-rendering/27956/3 "2015-07-09T19:01:25Z")

</div>

Thanks! Will try that.

---

<div class="post-metadata">

**Author:** ![yarre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yarre/32/78864_2.png) [@yarre](https://forum.ionicframework.com/u/yarre)\
**Post date:** [July 10, 2015, 7:07pm UTC](https://forum.ionicframework.com/t/issue-with-ng-show-and-a-element-rendering/27956/4 "2015-07-10T19:07:45Z")

</div>

1. Don’t seem to work but I agree that ng-cloak should solve it…
2. I solved this one. It seems that since the image is loaded afterwards, it creates a “shadow” of the text inside the a href. Never seen anything like it but when I set a fixed height so that they text didn’t wait for the image to be placed it solved it.
