Hi Garwan50,

What is the part that is disconcerting to you? I moved most off the code to 
what is considered current best practices 
<https://github.com/johnpapa/angular-styleguide>. At the same time, I 
didn't change it too much, so you would find back your original code in 
there. 

The construct with passing in the controller to a function inside that 
controller is a bit unconventional. But it is close to what you where 
trying to accomplish. Also, this enables it to update a different 
controller.  Again,  a bit unconventional, but it will get the job done.

If you have any more questions, don't hesitate to ask.

Regards
Sander 

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to