jQWidgets Forums

jQuery UI Widgets Forums Angular Angular 2 component flickering

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 8 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Angular 2 component flickering #91174

    jfabian
    Participant

    Is there a way to stop the controls from flickering after navigating to a page? Tabs for example show the list then a second later the tabs render. In angular 1 there was ngcloak but not in angular 2, I tried to use *NgIf=”pageLoaded” that is set in ngAfterViewInit, ngAfterViewChecked with no luck.

    Angular 2 component flickering #91176

    Peter Stoev
    Keymaster

    Hi jfabian,

    A common solution in such scenarios is to set “visibility: hidden” of some part of your DOM tree. Then when the page is loaded, set it back to “inherit” or “visible”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.