-
Notifications
You must be signed in to change notification settings - Fork 62
Selecting Dates #66
Comments
Hi, you want to pre-select dates or you want to highlight some dates ? Have you checked the demo ? http://arca-computing.github.io/MultipleDatePicker/#ngmodel The ngModel must be an array of moment dates. |
Im trying to pre select the dates, I`m using an older version,
i read that i can use "daysSelected", and it works, but for some reason an error is shown on the console |
Can you use the latest version? |
let me try |
i migrate to the next version, but the same error appears |
TypeError: daysSelected.map is not a function |
Can you give me here your html and js code? |
Ok, now you have the latest version, don't use |
Also experiencing this. It is Sunday here now and it just became a huge issue suddenly. In my case using only Moment 2.14. MDP 2.0.7. Also using |
The infdig seems to be happening the template is being evaluated, this is one of the lines that shows up:
The first line of the trace is the most helpful. Since we're using AJS 1.3, I believe we're seeing this: angular/angular.js#11315 The model is set to NaN and the Infinite Digest happens. |
Could you provide me an example like on jsfiddle ? |
@mgohin Take a look here, one external CSS file links to our production file: |
Here is one with the main JS file broken apart and separate dependencies: |
And having done all that, it seems that going from :) |
So no more problem ? :) |
im trying to use de multipledate picker, i have an event wich already has dates, how can i automaticlly show them on the callendar, ive allready tried with the ng-model and nothing appears there, when i use the selected-days attribute an error is shown in the console, it says that anngular has made too may loops and crashed
this is my tag
<multiple-date-picker ng-model="selectedDates"></multiple-date-picker>
this is where I add data
$scope.selectedDates = []; $scope.selectedDates.push(moment());
The text was updated successfully, but these errors were encountered: