[Datepicker]Can't bind to 'bsValue' since it isn't a known property of 'input'.
See original GitHub issuewhen i use datepicker, i have this error import { BrowserModule } from ‘@angular/platform-browser’; import { NgModule } from ‘@angular/core’;
import { AppComponent } from ‘./app.component’; import {NavbarComponent} from ‘./navbar/navbar.component’; import {DatepickerModule} from “ngx-bootstrap”; import {FormsModule} from “@angular/forms”;
@NgModule({ declarations: [ AppComponent, NavbarComponent ], imports: [ BrowserModule, DatepickerModule.forRoot(), FormsModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }
<input type=“text” value=“{{ bsValue | date:‘yMd’}}” bsDatepicker `[(bsValue)]=“bsValue”>]
public bsValue: any ;
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:18 (5 by maintainers)
Top Results From Across the Web
can't bind to 'bsValue' since it isn't a known property of 'input ...
The mistake is that I'm importing DatepickerModule.forRoot(), but instead I need BsDatepickerModule.forRoot(), . This is imported using:.
Read more >Can't bind to 'ngModel' since it isn't a known property of 'input'
To fix Can't bind to 'ngModel' since it isn't a known property of 'input' error in Angular we have to import FormsModule in...
Read more >Datepicker - Angular Material
A datepicker is composed of a text input and a calendar pop-up, connected via the matDatepicker property on the text input.
Read more >can't bind to 'value' since it isn't a known property of 'p-table'.
If 'p-dataTable' is an Angular component and it has 'value' input, then verify that it is part of this module. If 'p-dataTable' is...
Read more >Can you remember "Can't bind 'x' since it is not a known ...
This error often means that you haven't declared the directive "x" or haven't imported the NgModule to which "x" belongs.
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 Free
Top 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
I have this on .angular-cli.json
I will add this to FAQ one day 90% issue like this: