Questions tagged [ng2-datepicker]

ng2-datepicker is a datepicker component for Angular2.

30 questions
5
votes
0 answers

ng-2 datepicker [(ngModel)] value not updated after form is submitted Angular 2

Hello Currently I am using ng-2 datepicker 1.8.3 version in angular 2 when I initially bind datepicker with…
4
votes
1 answer

angular2 - no service provider for DatepickerConfig

I am implementing ng2-bootstrap datepicker, but getting the below error. Please help me on this. EXCEPTION: Uncaught (in promise): Error: Error in http://localhost:8888/app/components/report.component.html:3:0 caused by: No provider for…
Yashavanta SB
  • 79
  • 3
  • 11
4
votes
2 answers

how to use ng2-datepicker for angular 2 app

I want to include ng2-datepicker module in my application. I tried following as mentioned in the readme file. npm install ng2-datepicker --save modified systemjs.config.js file to: .map { 'ng2-datepicker': 'npm:ng2-datepicker', 'moment':…
Manohar
  • 1,095
  • 2
  • 10
  • 16
3
votes
0 answers

ng2-datepicker how to set or update date manually

ng2-datepicker how to set date manually? datepicker.component.ts options: DatePickerOptions = { initialDate: new…
Pratap A.K
  • 4,337
  • 11
  • 42
  • 79
2
votes
2 answers

ng2-datepicker how to change the date from typescript code?

I am using the ng2-datepicker in my angular app and I want to update the date from the typescript file. In the html template: It is…
trees_are_great
  • 3,881
  • 3
  • 31
  • 62
2
votes
2 answers

ng2-datepicker with format option and ngModel returning [object Object]

I'm trying to use the ng2-datepicker for choosing a date and afterwards displaying it on a table. I'm having the issue that the binding to my chosen date doesn't work. I guess that it has to do something with the format option that I made…
seawave_23
  • 1,169
  • 2
  • 12
  • 23
2
votes
3 answers

ng2-datepicker options not working

I am trying to integrate ng2-datepicker in my project. It worked fine until I tried to use the options. According to the documentation, I can pass options to the component using property bindings. So I tried to customize the format :
Arnaud Denoyelle
  • 29,980
  • 16
  • 92
  • 148
1
vote
2 answers

ng2-daterangepicker - set startDate and endDate programatically

i hope someone can help me. I Tried to figure it out, but i didn't find any way. I am using this daterangepicker: ng2-daterangepicker I would like to set the value of my ng2-daterangepicker programatically in my component.ts file. I found this…
Adel
  • 88
  • 2
  • 11
1
vote
3 answers

ng2-datepicker set empty value

what i am trying to achieve is to set empty date field. By default it fills field with current date. My template file My .ts file public options1:…
Oxyphe
  • 11
  • 1
  • 4
1
vote
1 answer

Angular 2 - How do I catch the touched value of a child Input element

I am trying to use ng2-datepicker and I'm not getting the touched response from the input element. The datepicker-input is being flagged as touched but its not bouncing up to Angular.
Campey
  • 1,108
  • 9
  • 15
1
vote
2 answers

set an initial value on ng2-datepicker

I am using ng2-datepicker for available date and date expires. I was wondering if anyone knew how to set an initial value. Everything with the date picker works, I just want dateAvaliable to be today's date and then dateExpires to be 2099-12-31. …
Joshua Deshazer
  • 171
  • 3
  • 15
1
vote
2 answers

How to properly connect the ng2-datepicker component in angular 2 app

Ng2-datepicker (1.0.6) Angular2 (2.0.0-rc.5) When i try to use it in html as in their docs i got this error: zone.js:484 Unhandled Promise rejection: Template parse errors: Can't bind to 'ngModel' since it isn't a known property of…
Victor
  • 13
  • 3
0
votes
0 answers

ng2-datepicker how to detect change that manuelly setted date

I have to use ng2-datepicker library to choose dates. I can choose it by clicking on calender. Unfortunately when i write into input area the date, it's not changing calander's date and i need this value to send a parent component when…
Gly
  • 21
  • 4
0
votes
0 answers

how to give tabindex to third party library like, ng2-datepicker from datepickermodule in angular

I am using in my template which I have imported from DatePickerModule. Problem is, it is not keyboard accessible. How to make that calendar keyboard accessible and select date using keyboard? I tried
0
votes
1 answer

Can't bind to 'options' since it isn't a known property of 'div'

I am trying to implement the ng2-daterangepicker module in my application. But I am facing a property binding error in it. I don't know why? I have imported the module into AppModule also. At least I want to whether is this because of property…
1
2