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 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.

Reply via email to