admin管理员组文章数量:1126112
I have enabled view transitions using the withViewTransitions()
function in provideRouter()
.
Now I like to write a directive or something to be able to disable the transition view for a specific <router-outlet>
.
P.S: I know that we can also use CSS tricks like view-transition-name: disabled
to achieve a similar solution... But I don't want to use CSS as it doesn't work in all browsers and devices... For example in some iOS devices even though I defined a CSS rule like ::view-transition-group(disabled) { animation-duration: 0s !important; }
, sometimes my fixed positioned header & footer in the page blink and I get weird unexpected results... So maybe a pure standard Angular solution can be a better approach.
Any help is so much appreciated. Thanks in advance.
本文标签: angularHow to disable view transitions for a specific router outletStack Overflow
版权声明:本文标题:angular - How to disable view transitions for a specific router outlet? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736679518a1947351.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论