Sander, 

I had read this long back - put "Define 1 component per file."
But my project has atleast 30 controllers and 30 factory methods. The no of 
files might grow even further very soon.

I'll have to link them all to the index.html page! Doesn't it look awkward? 
And is that the actual way to do stuffs?

Ya, functions are permitted in angular and I've plenty of them. But I want 
to have a single function which is accessible from all controllers!

I can't(probably) write a factory method and inject it into each 
controller. Because these repeat codes are factory methods and some 
functions which get values from view. I want to take out all those repeat 
code and put it in one place and include it inside each controller - just 
like a method call.

..feeling confused!

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