Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

index.html not rendering based on oj-bind-if

Wrushasen DakhaneJun 7 2020 — edited Jun 9 2020

@@@@Below is the code from index.html which is supposed to render based on oj-bind-if

What I see is that there is a flicker when the page loads for the first time, and we see html portion from oj-bind-if false coming up.

<oj-bind-if test="[[router.stateId() === 'signin']]">

<div id="mainContent" role="main"

class="oj-web-applayout-content oj-md-align-self-center oj-md-12 ss-shadow"

data-bind="ojModule: router.moduleConfig"

style="background: url('images/bg_splash_img_sm.jpg') no-repeat center center fixed;background-size: cover; overflow: hidden;">

</div>

</oj-bind-if>

<oj-bind-if test="[[false]]">

Some more html content

</oj-bind-if>

I also see the same behaviour Chrome/Edge/Firefox. No error on the console.

So when the page loads for a sec we see the html being rendered. then gets hidden.

How can we avoid it?

I even tried data-bind="visible: false" still it shows

@"John "

Comments
Post Details
Added on Jun 7 2020
3 comments
304 views