我正在开发一个 Angular 项目,从 angular14 更新到 15,但是在安装新的 Material 包后,整个项目在视觉上似乎被破坏了。颜色、边距、填充错误。该项目只包含css样式文件,不包含scss。我认为问题出在遗留材料组件上,但是我应该如何/在哪里添加到项目中?谢谢!
angular-material angular angular14 angular-migration angular15
角度材质从 14 迁移到 15 后,出现此错误:
Error: NG0300: Multiple components match node with tagname button: MatButton and MatIconButton
Run Code Online (Sandbox Code Playgroud)
想法如何解决这个问题?
我最近从 Angular12 迁移到 Angular14,Angular 在某些地方自动将 FormControl 转换为 UntypedFormControl。我观察到,在我使用 FormControl 的某些组件中,它仍然写为 FormControl。因此,我对哪些标准或在哪些条件下将 FormControl 角度转换为 UntypedFormControl 以及为什么在某些地方它仍然是 FormControl 感到有点困惑。我知道 UntypedFormControl 只是指向任何类型的 FormControl。
当我比较这两种情况时,我没有发现编码以及创建和使用 formGroup 和 formControl 的方式有任何差异。这让我更加困惑。
提前致谢!
formbuilder form-control formgroups angular14 angular-migration
我正在从 Angular 16 迁移到 17,遇到了需要用新语法替换*ngForand*ngIf的所有用法的问题( and和ngSwitch@for@if@switch所有用法的问题。
我知道 v17 仍然支持旧语法,但有没有办法迁移它们或使用正则表达式将它们替换为新形式?
我的 Angular 项目是版本 13,我将其逐步迁移到 Angular 16。现在我想让它完全独立,然后将其迁移到版本 17。
是否有任何我可以使用的实用程序或者我必须手动执行?
typescript angular angular-migration angular-standalone-components
angular ×3
angular14 ×2
typescript ×2
angular-standalone-components ×1
angular15 ×1
angular17 ×1
form-control ×1
formbuilder ×1
formgroups ×1