Hi Pete, Can you help me with this ? http://plnkr.co/edit/oGnKUmg3LHE3wlkGrsqp?p=preview http://stackoverflow.com/questions/27933656/ng-repeat-on-ng-select-with-onchange-function-repeats-the-same-values
On Wednesday, March 6, 2013 at 2:38:32 PM UTC-7, Pete Bacon Darwin wrote: > > The problem is that your internal input has a different ng-model > controller to the span and there is no easy way to keep them in sync. > Here is a bit of a go at it: > http://plnkr.co/edit/2scYI4JzZD6zgEhXf9nS?p=preview > > > On 6 March 2013 19:22, Olivier Clément <[email protected] > <javascript:>> wrote: > >> Yeah I though about that but since I'm not sure what is causing the >> problem I decided to leave accordions and what not there so it show the >> context in which I'm in for my project. >> >> As for what the problem is: >> >> If you try to edit and empty the AddressLine1 field of an item, which is >> marked as required -> >> The classed applied to the input field are: ng-scope ng-dirty ng-invalid >> ng-invalid-required >> But its immediate parent have ng-isolate-scope ng-scope ng-pristine >> ng-valid >> Also, the form element which is quite a bit higher in the DOM is also >> marked as Pristine and Valid >> >> So I have no way of easily knowing if the whole form is valid. >> >> I am not sure why the immediate parent of the input (span) would have >> those classes appended either. >> >> Ultimately, I want to be able to aggregate all errors in 1 point, display >> the errors to the user and prevent the user to submit the data if there are >> any errors. I couldn't care less about the form tag though, I put it there >> initially because I thought maybe it was necessary for angular's validation >> to work properly. >> >> Thank you for looking into this, I really appreciate it >> >> >> On Wednesday, March 6, 2013 12:18:40 PM UTC-5, Peter Bacon Darwin wrote: >> >>> Hi Olivier >>> It really helps people give you support if you strip down your problem >>> to the smallest. I have had a crack at removing unnecessary bits from this >>> to make it easier to read (for instance accordion is not relevant here). >>> http://plnkr.co/edit/2scYI4JzZD6zgEhXf9nS >>> Now what exactly is the problem :-) >>> Pete >>> >>> >>> On 6 March 2013 14:44, Olivier Clément <[email protected]> wrote: >>> >>>> Bumping this again ... I'm really lost here; >>>> ANY pointers anyone might have will help >>>> >>>> Thanks! >>>> >>>> >>>> On Saturday, March 2, 2013 3:24:03 PM UTC-5, Olivier Clément wrote: >>>>> >>>>> Bump? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "AngularJS" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> >>>> Visit this group at http://groups.google.com/group/angular?hl=en-US. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/angular?hl=en-US. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
