Durandal: Showing a 'LOADING…' during composition

后端 未结 2 1620
执笔经年
执笔经年 2020-12-30 09:47

I can easily show a loading message while the activate method is doing its thing like so:

        
<
2条回答
  •  生来不讨喜
    2020-12-30 10:08

    This sounds to me like a scenario where a custom transition may be useful. When the composition mechanism switches nodes in and out of the DOM, it can use a transition.

    This page, under Additional Settings>Transition (about halfway down) describes a custom transition: http://durandaljs.com/documentation/Using-Composition/

提交回复
热议问题