Does angular2 have ngCloak

后端 未结 3 371
名媛妹妹
名媛妹妹 2021-01-03 23:32

AngularJS 1.x has ngCloak directive, which is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form.

Doe

3条回答
  •  孤城傲影
    2021-01-04 00:09

    You can prevent rendering of html by using *ngIf until the corresponding object is loaded:

    <>....

提交回复
热议问题