question-mark
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.

[Datepicker]Can't bind to 'bsValue' since it isn't a known property of 'input'.

See original GitHub issue

when 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
Hesessescommented, Sep 4, 2017

I have this on .angular-cli.json

"styles": [
    "../node_modules/bootstrap/dist/css/bootstrap.css",
    "../node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
    "styles.scss"
],
4reactions
valorkincommented, Aug 29, 2017

I will add this to FAQ one day 90% issue like this:

  • forgot to import
  • forgot forRoot
  • forgot to import in child\lazy module
  • forgot to export from shared module 😃
Read more comments on GitHub >

github_iconTop 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 >

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found