Hey Ken, It seems that "agreementForm.value1" is scoped to AgreementFormCtrl only and not ContactFormCtrl. You probably can create a PubSub communication between the controller and on clicking the "I agree" button/ agreementForm.agree method, you can broadcast an event/ notification. Then on ContactFormCtrl, you can listen the event using $on and then bind the value to the checkbox. For more info, kindly read through: http://stackoverflow.com/questions/11252780/whats-the-correct-way-to-communicate-between-controllers-in-angularjs
On Thu, Mar 12, 2015 at 5:18 PM, Ken <[email protected]> wrote: > I am trying to automatically check a checkbox on the main page when a > modal closes. I am using one controller for the modal and another > controller for the main page. Here's the Plunker: > http://plnkr.co/edit/bCe4Rv6gYebIbDtRuuPB. Any thoughts on what I'm doing > wrong? Should I be using a directive here instead, or is there another way? > > -- > 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. > -- 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.
