Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sharing same function between 3 controllers
Message
 
 
To
17/02/2015 16:32:11
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01615503
Message ID:
01615505
Views:
45
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform