Thanks sanders. Now I modified the 
plunk http://plnkr.co/edit/cQLGI1CQ6UHBoq5ShFDP?p=preview . Its working.
I moved the global data to service. But passed scope to modal. It didn't 
work. Then i did not pass scope to modal. Amazingly, it worked.
what is the exact reason for scope causing problem?

Regards
Vadiraj
On Friday, August 28, 2015 at 11:25:30 AM UTC+5:30, Sander Elias wrote:
>
> 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