Thank you. I appreciate your time . Is this good practice to put component 
definition and controller logic in the  same file ?

I googled but could not find any examples showing component definition and 
controller logic in a separate file, it could be great if you could provide 
some example demonstrating this.

Thanks



On Monday, June 27, 2016 at 10:03:02 AM UTC+5:30, Sander Elias wrote:
>
> 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.

Reply via email to