Hi Satish You should really read through a style guide, <https://github.com/johnpapa/angularjs-styleguide> a lot will fall into place for you. First of all, all JS files should just hold a single entity. an entity being a controller, a directive or a service.
You should not be writing repeated code, there is no need for that. There are quite a number of ways to take care of that, and keep your code neat and DRY. You can put the repeated code into a service, of a utility function. (yes you can have functions inside angular!) More questions? just ask them! 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
