Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As you're loading some dependencies with require.js before bootstraping the angular, user have to wait for all those files to be completely loaded before application starts. And because HTML is loaded first before your scripts, it's raw content is made visible to the user for a while.</p> <p>If you don't wan't the user to see the content of your HTML element before it's processed by angular, use the <code>ngCloak</code> directive which is made just for this. Take a look at this entry of the documentation: <a href="http://docs.angularjs.org/api/ng.directive:ngCloak" rel="noreferrer">http://docs.angularjs.org/api/ng.directive:ngCloak</a>. This directive sets the element's style so that it's initially hidden and when angular bootstraps and finishes processing the HTML element's style is set back to visible, thus only showing the compiled HTML.</p> <p><strong>Update:</strong></p> <p>But as the above solution won't work straightaway in your case (because angular library script would have to be loaded before the template body — be included in document's <code>head</code>), you should additionally include the following styling in the <code>head</code> section of your document:</p> <pre><code>[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none; } </code></pre> <p>This is what angular appends to page styles after being loaded.</p> <p>Yet another solution would be not to insert the <code>{{ }}</code> bindings directly inside elements' bodies, but using <code>ng-bind</code>, <code>ng-bind-template</code> and <code>ng-bind-html-unsafe</code> directives instead. You can find their descriptions here:</p> <p><a href="http://docs.angularjs.org/api/ng.directive:ngBind" rel="noreferrer">http://docs.angularjs.org/api/ng.directive:ngBind</a> <a href="http://docs.angularjs.org/api/ng.directive:ngBindTemplate" rel="noreferrer">http://docs.angularjs.org/api/ng.directive:ngBindTemplate</a> <a href="http://docs.angularjs.org/api/ng.directive:ngBindHtmlUnsafe" rel="noreferrer">http://docs.angularjs.org/api/ng.directive:ngBindHtmlUnsafe</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload