Ale*_*yko 7 datepicker typescript angular-material angular
The problem is that I can't use <mat-date-range-input> Material Component because I get an error:
I have a module called "Material module" and there's an import and export of MatNativeDateModule and MatDatepickerModule. This module is imported into module I'm working with.
I can use simple mat-datepicker and it works properly.
Can anybody help me with that?
10.1.2 - version of Material
pra*_*yay 10
您使用的是旧版本的 Angular,而是使用 10.1.2 版本的材料?
mat-date-range-input不适用于低于 10.0.2 的 Angular 版本。要利用这一点,您必须更新您的应用程序,如果您使用的是版本 9,这将非常简单。我遇到了同样的问题,并且在更新范围日期选择器后可以正常工作。
有关如何更新的详细信息,请访问:https : //update.angular.io/。
这些进口也必须在 app.module.ts
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatNativeDateModule} from '@angular/material/core';
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助。:)
| 归档时间: |
|
| 查看次数: |
10817 次 |
| 最近记录: |