I found when Angular component is loaded on parent HTML file, it will lose its activity as a user navigates to other parts of parent HTML file.
我发现Angular组件加载到父HTML文件时,当用户导航到父HTML文件的其他部分时,它将失去活动。
For instance, inside angular component, I have a CSS3 animation going on triggered by a start animation button on angular component.
例如,在角度分量内部,我有一个由角度分量上的开始动画按钮触发的CSS3动画。
When I navigate to other part of its parent html file, angular component's CSS3 animation will automatically stop and I will have to manually trigger it again.
当我导航到其父html文件的其他部分时,角度组件的CSS3动画将自动停止,我将不得不再次手动触发它。
Is there any way to keep that animation going in Angular component when the component is hidden / in background?
当组件隐藏/在后台时,有没有办法让动画进入Angular组件?
It looks like component automatically goes back to its default state when it's hidden / in background.
看起来组件在隐藏/在后台时会自动返回其默认状态。
Thanks in advance!
提前致谢!
1 个解决方案
#1
1
I maybe misunderstood your needs, but have you seen this ? https://github.com/katzer/cordova-plugin-background-mode
我可能误解了你的需求,但你看到了吗? https://github.com/katzer/cordova-plugin-background-mode
#1
1
I maybe misunderstood your needs, but have you seen this ? https://github.com/katzer/cordova-plugin-background-mode
我可能误解了你的需求,但你看到了吗? https://github.com/katzer/cordova-plugin-background-mode