Hi, We have recently re-written UI for our project in AngularJS. I want to > understand the angular guidelines and the best practices to develop. >
You may refer to the following styleguide: https://github.com/johnpapa/angular-styleguide Basically, I want to move some functions from controller class to a helper > class. Can I simply create a utils class and call those functions in > controller? > Can you be more specific in this? You can create utils service/factory. Controllers should be thin, adhering to MVC pattern. On Friday, 13 November 2015 21:39:15 UTC+5:30, Angular goodPractices wrote: > > Hi, > > We have recently re-written UI for our project in AngularJS. I want to > understand the angular guidelines and the best practices to develop. > > Basically, I want to move some functions from controller class to a helper > class. Can I simply create a utils class and call those functions in > controller? > > -- 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/d/optout.
