An error - Angular 6 with Material
See original GitHub issueI’ve installed the date-time picker, with Moment JS provder… and followed the correct steps…BUt I am getting this error : EROR TypeError: this.overlay.position(…).flexibleConnectedTo(…).withTransformOriginOn is not a function And it is completely broken. . Here is my Module:
import { OwlDateTimeModule, OWL_DATE_TIME_FORMATS } from 'ng-pick-datetime';
import { OwlMomentDateTimeModule } from 'ng-pick-datetime-moment';
export const MY_FORMATS = {
parse: {
dateInput: 'LL',
},
display: {
dateInput: 'LL',
monthYearLabel: 'MMM YYYY',
dateA11yLabel: 'LL',
monthYearA11yLabel: 'MMMM YYYY',
},
};
@NgModule({
imports: [
CommonModule,
FormsModule,
OwlDateTimeModule, OwlMomentDateTimeModule
],
providers: [
{provide: OWL_DATE_TIME_FORMATS, useValue: MY_FORMATS}
],....
and My component.html as follows:
<input [owlDateTime]="dt1" [owlDateTimeTrigger]="dt1" placeholder="Date Time">
<owl-date-time #dt1></owl-date-time>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error after Update to Angular 6 - Material Design for Bootstrap
Hey,we upgrade our devenv and project from Angular 5.2 to Angular 6 as its described at the http://update.angular.io page.But now we get the...
Read more >Angular 6 Material form reset makes Validation error appear
My reset, wants me to bring the form like it looks during loading.. how to do it ? angular · angular6 · angular-material-6...
Read more >Select | Angular Material
This error is thrown if you attempt to assign a value other than null , undefined , or an array to a <mat-select...
Read more >How To Update Angular CLI To Latest Version
If you are using Angular material You have to update it as well using ng update command. ng update @angular/material. The Angular latest ......
Read more >Upgrade Angular 6 app to Angular 7 with Visual Studio 2017
To fix this error, first run npm link and then run ng serve command. 1. 2. npm link. ng serve ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Update your
@angular/cdk
to latest version.Sorry, I think it had to do with some cached node modules. After running
rm -rf ./node_modules
and reinstalling, it works with both versions I mentioned.