>You should know that you never repeat code. Create a class called Shared and put it in the Contollers folder.
>
>Note: this isn't the best way, but it's easy and gets the job done. Much refactoring would be needed to do things a better way.
>
I am talking about JavaScript code, not the c# code here. I want to share same function between angularJs controllers which are defined in the same .js file and are in the Scripts folder under particular area.
If it's not broken, fix it until it is.
My Blog