Hi Vadiraj,

The problem you have is called scope-soup. You have created such a large 
hierarchy of scopes, that is becomes impossible to reason about it. As I 
said, the problem is in the scopes. You can do 2 things Keep on going this 
way, and create an app that becomes increasingly difficult to maintain, or 
bit the bullet an rewrite it to use controllerAs syntax. Once again I will 
refer to the styleguide <https://github.com/johnpapa/angular-styleguide>. 
Read trough the entirety of that. Even if you don't understand everything 
at first. Pay close attention to the controllerAs parts, as those are the 
most important  to keeping your apps maintainable.

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

Reply via email to