Sander,

I have tried what you suggest, i.e. created a second controller that 
simulates loading my data (it sleeps for 5s). What I expected is that 
{{testString}} would not show up until finishedLoading=true. However, I can 
see {{testString}} and then after testCtrl2 has been loaded (and 
finishedLoading = true) then {{testString}} is replaced by hello. 
Interestingly, if I remove the div for the testCtrl2, i.e. <div id="div2" 
ng-controller="testCtrl2">, then {{testString}} does not show up. Of course 
"hello" also never appears because testCtrl2 is not being loaded. So how 
can I make this code behave so that {{testString}} does not show up?

http://plnkr.co/edit/WOsQ7qfvHOPJRHoUIJCR?p=preview

-- 
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