Hello, Yes that's happens always if you call or defined it 2 times.
You must only applies on route definition or just in HTML view using ng-controller. Let me explain you where to apply in which case. 1) when you need to use any controller on entire view and view is called by url that means route, so you can assign that controller on route definition. 2) on the other hand when you need to provide any controller for only special html portion that is inside any controller and you wish you need to do some different actions on that portion that time you need to use ng-controller for that specific HTML portion and assign your controller. Let me know. -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
