Hello, I have one ng-view bound to route: /home inside this ng-view, i need two sub-partial views and I do so by using ng-include.
<div ng-controller="template1Ctrl"> <div ng-controller="template2Ctrl"> <div ng-include src="template.url"></div> </div> </div> As you can see i have ng-controller defined for both sub-partials. Plunker: http://plnkr.co/edit/N56o4YBpWZt0V91TVCHA?p=preview Now, the problem is that when I want to make changes to the value of the service ($template1Service.template1Model) which is in the parent controller (template1Ctrl), the child controller (template2Ctrl) is not capturing it. Simply put, when you open the plunker, template 1 input field is by default set to value 1 and template 2 input field is set to value 2. When user changes the value 1 to some other value, the template 2 is not capturing it. Can anyone please help me understand the ng-include's issue here? I'm using angular 1.2 Thank you. -- 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.
