Code Monkey home page Code Monkey logo

Comments (4)

teamon avatar teamon commented on August 15, 2024

You can capture the change using standard $scope.$watch.

You may want to take a look at https://github.com/monterail/angular-mighty-datepicker - the new, better version of angular date picker redesigned from scratch (based on angular-date-range-picker experience in the wild)

/cc @venticco

from angular-date-range-picker.

Abhijeetpatil avatar Abhijeetpatil commented on August 15, 2024

its a question Actully

I have to implement dateLimit how can i set limit to select two dates

Thanks in Advance

from angular-date-range-picker.

JackLeEmmerdeur avatar JackLeEmmerdeur commented on August 15, 2024

Glad the Dave brought me on the right track. Looked up the location of callback within the datepicker-code. Found scope { callback: "&" } and as I knew that the isolated-scope mechanism in directives were a blind spot for me, I was forced to RTF. Thx to this, I could educate myself and as soon as I reached the &-symbol for isolated scopes I knew how to do it:

<user ng-controller="UserCtrl">
    <input type="text" date-range-picker ng-model="dates" callback="onDatesChanged()" />

The input-element is contained within the directive user, which is bound to the Controller UserCtrl. The latter contains a function $scope.onDatesChanged = function() {.... So the date-range-picker gets the function passed into its isolated scope.

Maybe that was to detailed, but just alone the word callback could not help in the first place

from angular-date-range-picker.

hodak avatar hodak commented on August 15, 2024

Thanks for opening the issue. We're sorry to say that we've stopped maintaining this project in favor of angular-mighty-datepicker. We encourage you to check it out instead.

from angular-date-range-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.