Thanks Daniel, I got it now.
On Mon, Dec 16, 2013 at 9:51 PM, Daniel Tabuenca <[email protected]> wrote: > Woah! Why are you doing: > > myModule.controller = 'SampleController' > > What you just did there is replace the myModule.controller() function > with a string SampleController. This means next time you try to call > myModule.controller('Test2Controller',.....) it won’t work because you > just overwrote the function. What did you think doing > myModule.controller='SampleController' did? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/gMG_4EkEajY/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
