Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sharing same function between 3 controllers
Message
 
 
To
19/02/2015 08:36:10
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01615503
Message ID:
01615575
Views:
39
>>>>>>Looks as if you're using angular-ui. If that's the case wouldn't a nested state/view be a good solution.
>>>>>
>>>>>No, the grids are not identical.
>>>>
>>>>You could put the loadView function outside the controllers and call it from each passing in $scope, $rootscope and invoiceno. ?
>>>
>>>Why not create a common prototype for those 3 controllers?
>>>
>>What do you mean by that? I don't think there is inheritance in JavaScript.
>
>
>start here
>
>http://www.crockford.com/javascript/javascript.html
>http://www.crockford.com/javascript/inheritance.html
>http://javascript.crockford.com/prototypal.html

Thanks, I'm going to pursue these links.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform