admin管理员组文章数量:1344946
I am upgrading my medium-sized application from Angular 16 to Angular 17. However, [ngClass.*] breakpoints are no longer supported in ngx-layout for Angular 17. Since my styles are SCSS-based, I need to update most of my templates where these breakpoints were used. What is the best approach to achieve this transition with minimal code changes?
for example
<div fxFlex="40%" fxFlex.lt-md="90%" fxLayout="row" fxFlex.md="30%" fxLayoutGap.md="4%" fxLayout.lt-lg="column" [ngClass.lt-md]="'grey-right-brdr'" [ngClass.gt-md]="'grey-btm-brdr'">
'''
how to handle the changes [ngClass.lt-md]="'grey-right-brdr'" [ngClass.gt-md]="'grey-btm-brdr'"
本文标签: angular17Angular 17 upgradehandle ngclass*breakpoint changesStack Overflow
版权声明:本文标题:angular17 - Angular 17 upgrade - handle ngclass.*breakpoint changes - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743796629a2540552.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论