ngInclude creates a new child scope which inherits scope values from the parent controller. Here is a good stack overflow explaining in detail: http://stackoverflow.com/questions/11412410/angularjs-losing-scope-when-using-ng-include
Also I noticed that you were defining the controller in each template which I think was creating three instances of the controller. I moved it up so there would be a single controller declared. It may work the way you had it, but I've never done it that way. Updated plunker: http://plnkr.co/edit/0FSgvk?p=preview Gordon On Tuesday, April 1, 2014 1:22:09 PM UTC-5, sadha sivam wrote: > > Hi Team, > > I have issue in scope not bindind with ng-include directive, till date i'm > not getting solution. > > Please refer below plunkr link and please give solution. > > http://plnkr.co/edit/Um1w4RropGPNHimWE5xB?p=preview > > Regards, > SADHASIVAM.P > -- 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.
