Delaying AngularJS route change until model loaded to prevent flicker

后端 未结 13 2291
误落风尘
误落风尘 2020-11-22 02:28

I am wondering if there is a way (similar to Gmail) for AngularJS to delay showing a new route until after each model and its data has been fetched using it

13条回答
  •  一生所求
    2020-11-22 03:15

    One possible solution might be to use the ng-cloak directive with the element where we are using the models e.g.

    Value in myModel is: {{myModel}}

    I think this one takes least effort.

提交回复
热议问题