-
Notifications
You must be signed in to change notification settings - Fork 6.7k
bug(datepicker): doesn't fire ng-change events #612
Comments
Oh, I see... @bekos we should probably consider plugging into the |
@pkozlowski-opensource I agree that this would be the best practice, but I am not sure how this could work with an isolated scope. I will look into this. |
@pkozlowski-opensource There is an open issue for isolated-scope and ngmodelcontroller in AngularJS, so I don't think we can do many things atm. Probably, a solution is to add a |
@bekos was just updating this issue :-) So, there is no real "issue" of isolated scopes and ngModel - it is just that in the current version of AngularJS a given DOM element is associated with one and only one scope. I agree that this is a pain but there are ways out. In the typeahead directive I'm creating an isolated scope for popup matches and manually evaluate expressions against a proper scope. I'm not saying that this is what we should be doing for the date-picker directive but we will have to find a solution if we want it to work with inputs. Plugging into ngModel will be necessary to support custom date formats. Anyway, I agree that this is not a trivial topic, especially if we want to combine it with a popover. But hey, we are AngularJS masters, got AngularJS commiters in the team and can ask for help from the core team. So I'm sure that we will find a good solution! I would be really keen on seeing datapicker integrated with popovers / inputs and I can help with design issues / reviewing code etc. On my side I would like to finish $dialog rewrites. Also we should try to fix existing bugs as to prepare for AngularJS 1.2 / Bootstrap 3.0 migration. |
* `ngModelController` integration * `datepikcerPopup` directive ti use with inputs * invalid & disabled validation * add `min` / `max` into configuration Closes #612
* `ngModelController` integration * `datepikcerPopup` directive ti use with inputs * invalid & disabled validation * add `min` / `max` into configuration Closes angular-ui#612
Help me with this http://plnkr.co/edit/WBt1BGAqBnecEdv1jqfu?p=preview |
simple solution to pass vaule js } |
simple solution to pass vaule js } this is the best answer |
@johntom I nearly went through 7 hrs searching and finally got this small magic 👍 ,Thanks a Lot! |
Hi, html js Thanks in advance. |
@kris8889 here is the link-- http://plnkr.co/edit/rbB3nf?p=preview |
@johntom Thank you, solved my problem too. |
I am facing on ng-change issue. I am using dynamic datetime-picker. date is showing in ng-model but ng-change not firing. Please help......... |
I have an issue with ng-change and datepicker directive. In this piece of code:
myScopeFunction
is never called.The text was updated successfully, but these errors were encountered: