Hi there, it took me quite a bit of time to understand what went wrong in my current project, and even longer to pinpoint what part of my code caused it. I have created a fiddle to demonstrate my issue here: http://jsfiddle.net/rolandzwaga/h8ruy/
What it comes down to is this: - I have an ng-view that contains a view with an ng-include in it. - This ng-include is populated with HTML that contains ng-controller attributes. - Through a menu the $location.path() is being changed according to the menu item that is chosen. - Lastly, there is a variable to which the URL of the ng-include is bound. (Also according to the selected menu item) Once the $location.path() and this source variable are set within the same codeblock the controller specified in the ng-include HTML will be created twice. (And worse, the first instance won't be destroyed). Now, I would, of course, like to know whether this might be an issue in Angular, or perhaps that I'm doing something wrong. Either way, I'm hoping somone can enlighten me :) thanks in advance, cheers, Roland -- 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/groups/opt_out.
