Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using with angular 5

See original GitHub issue

ng-pick-datetime@5.2.6, angular@5.0.0

<input [owlDateTime]="dt1" [owlDateTimeTrigger]="dt1" placeholder="Date Time">
                                <owl-date-time #dt1></owl-date-time>

Following error occurs in Chrome console: Uncaught Error: Template parse errors: Can't bind to 'owlDateTime' since it isn't a known property of 'input'

Related issue #228

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

thurimerlacommented, Feb 7, 2019

Hi @trinhcanhphuc ,

It works for me in Ionic3

Thank you very much giving reply.

Sorry for my bad English.

leandrit1commented, Sep 27, 2018

Hey @thurimerla , just make sure to import the OwlDateTimeModule and OwlNativeDateTimeModule in the correct Module that can reach your component. import { OwlDateTimeModule, OwlNativeDateTimeModule } from ‘ng-pick-datetime’;

Then just use it anywhere

                <mat-form-field fxFlex floatPlaceholder="never">
                  <input matInput [(ngModel)]="bestTimeToContact" placeholder="Select Date and Time" autocomplete="off"
                         [owlDateTimeTrigger]="dt" [owlDateTime]="dt">
                  <owl-date-time #dt></owl-date-time>

                <button mat-button (click)="chooseBestTimeToContact()">Done</button>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 5 Getting Error when trying to run "ng test"
I've faced the same error and, in my case, in order to solve it I had to reorder the scripts at .angular-cli.json and...
Read more >
Errors List - Angular
Errors Listlink · NG0100: Expression Changed After Checked · NG01003: Wrong Async Validator Return Type · NG01203: Missing value accessor · NG0200: Circular ......
Read more >
Angular 5 compilation error using @sentry/angular package
When using "angular": "5.2", "angular/cli": "1.7.3", "typescript": "2.7.2", getting the following error when using the "@sentry/angular": "5.22.
Read more >
Angular 5 Tutorial: Guide to Your First Angular 5 App - Toptal
In this Angular 5 tutorial, we are going to build a notes app from scratch. ... to your markup, your app won't work...
Read more >
Angular Error Handling Best Practices - Medium
On the server-side, when something goes wrong, a HttpErrorResponse is returned. As with the JavaScript error, it has a message property that we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found