Creating a splash screen using ng-cloak

前端 未结 2 1330
夕颜
夕颜 2020-12-14 12:24

I\'m trying to create a splash screen using AngularJS as described in this talk on the AngularJS youtube channel: http://youtu.be/xOAG7Ab_Oz0?t=10m20s

It uses the ng

2条回答
  •  青春惊慌失措
    2020-12-14 13:18

    The second css selector which was:

    [ng-cloak] {
        display: none;
    }
    

    should be

    .splash {
        display: none;
    }
    

    because angular will remove the ng-cloak class when the app is bootstrapped

提交回复
热议问题