Even if I remove the ng-if, It still works as expected. Probably not as you 
want tough ;)
If you look at the console, you will find 2 different controllers indeed. 
However, as you have them sharing the same scope, In a single scope, you 
can't have 2 different sets of data with the same variable names. With the 
ngIF it does work, because ngIf creates a new scope, and solves the issue 
that wat. There are quite a few solutions to your problem, of witch the 
best one is, don't use scope at all. Switch completely to the controllerAs 
way of working, and you won't have those issues anymore.

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