Hi S,
Well, that explains it. If you move your controller to a separate file, you should import it somehow into your component file. I don't know what module/build system you are using, so I can't tell you how to accomplish this. Now your component (as it sits inside IIFE) can not find your controller. Also, defining controllers on the global scope does not work since 1.3B15, and is a bad practice to begin with. Regards Sander -- 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.
