Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access the range dates in the controller #26

Closed
harsh-vardhhan opened this issue Oct 9, 2015 · 3 comments
Closed

How to access the range dates in the controller #26

harsh-vardhhan opened this issue Oct 9, 2015 · 3 comments
Labels

Comments

@harsh-vardhhan
Copy link

Apologies for the dumb question but I am not able to access the dates in the controller AppCtrl from this example http://plnkr.co/edit/KMxadj?p=preview

@spongessuck
Copy link
Owner

I'm not sure what you mean- it seems to work for me. What are you trying to do?

@harsh-vardhhan
Copy link
Author

I mean two say in the range option how can I have the start and end date as variable in controllers

@spongessuck
Copy link
Owner

You can access them from the selectedDates array individually, but they aren't assigned to any variables by default.

var startDate = Math.min.apply(null, $scope.selectedDates);
var endDate = Math.max.apply(null, $scope.selectedDates);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants