Avoiding expressions being shown on page load

后端 未结 6 733
独厮守ぢ
独厮守ぢ 2020-12-15 05:00

In an AngularJS video at one point I saw how to avoid an expression being visible before the Javascript parses it. But I can\'t remember how it was done...

I have a

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 05:22

    Just in case someone finds this information useful, I'm using the following workaroud.

    ...

    and

    .hide{display: none;}
    

    I use this to hide all content that as angular expressions until the controller is loaded, where I set this.pageLoaded = true.

提交回复
热议问题