Thanks Sander. Am reading the style-guide. I'm not yet able to write a function and index it inside a controller. But thanks for the reference, I'll do trail and error all night and try to understand it. Thanks a lot once again.. :)
On Thu, Jan 29, 2015 at 4:08 PM, Sander Elias <[email protected]> wrote: > Hi Satish, > > As I said, read trough the style-guide I included, it gives an practical > answer on most of your questions. > You can have lots of files, that's not a probblem, you should be using a > build tool like gulp or grunt. > A tool like that will give you the possibility to combine all the little > files in 1 large file. Just link the 1 large file in your page, and be done > with it. > > On my application I usually have an appController, that sit's on the outer > limit. It's kind of an personal $rootScope for my applications. A function > like you describe can be placed in there, and be available everywhere! > here is a small sample > <http://plnkr.co/edit/G9TEAPPdhs8LnYEWUuOx?p=preview> for you, does that > help? > > Regards > Sander > > -- > 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/qh62v0WEq7c/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/d/optout. > -- 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.
